From a92385c19bd9bcd1d890c6eb0666459179cf2ca6 Mon Sep 17 00:00:00 2001 From: tahabinaziz Date: Fri, 30 Oct 2020 21:04:48 +0500 Subject: [PATCH] List --- CONTRIBUTORS.md | 3 ++- source/snippets/csharp/index.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 28fe9ba..bd565c8 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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) \ No newline at end of file +- [Chaiyapat Tantiworachot](https://github.com/pixelart7) +- [Taha Bin Aziz](https://github.com/tahabinaziz) \ No newline at end of file diff --git a/source/snippets/csharp/index.md b/source/snippets/csharp/index.md index b06406f..52c7e06 100644 --- a/source/snippets/csharp/index.md +++ b/source/snippets/csharp/index.md @@ -25,3 +25,19 @@ private void Shuffle(string[] e) } } ``` + +# C# + +## Creating List + +Code snippet adds items to the list. + +```csharp +List AuthorList = new List(); + +AuthorList.Add("Mahesh Chand"); +AuthorList.Add("Praveen Kumar"); +AuthorList.Add("Raj Kumar"); +AuthorList.Add("Nipun Tomar"); +AuthorList.Add("Dinesh Beniwal"); +``` \ No newline at end of file