Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

List #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

List #170

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
- [Rabin Khatiwada](https://github.com/rabinkhatiwada)
- [Adrian Hernandez-Lopez](https://github.com/AdrianHL)
- [Juan Benitez](https://github.com/juanbenitez)
- [Chaiyapat Tantiworachot](https://github.com/pixelart7)
- [Chaiyapat Tantiworachot](https://github.com/pixelart7)
- [Taha Bin Aziz](https://github.com/tahabinaziz)
16 changes: 16 additions & 0 deletions source/snippets/csharp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ private void Shuffle(string[] e)
}
}
```

# C#

## Creating List

Code snippet adds items to the list.

```csharp
List<string> AuthorList = new List<string>();

AuthorList.Add("Mahesh Chand");
AuthorList.Add("Praveen Kumar");
AuthorList.Add("Raj Kumar");
AuthorList.Add("Nipun Tomar");
AuthorList.Add("Dinesh Beniwal");
```