|
1 | 1 | { |
2 | | - "id": "c-sharp-cheat-sheet", |
| 2 | + "id": "c-sharp", |
3 | 3 | "title": "সি-শার্প প্রোগ্রামিং", |
4 | | - "slug": "c-sharp-cheat-sheet", |
| 4 | + "slug": "c-sharp", |
5 | 5 | "description": "সি-শার্প প্রোগ্রামিং", |
6 | 6 | "colorPref": "#1290FD", |
7 | 7 | "contents": [ |
|
65 | 65 | "code": "Math.Pow(x, y)" |
66 | 66 | } |
67 | 67 | ] |
| 68 | + },{ |
| 69 | + "title": "লিস্ট ক্লাস", |
| 70 | + "items": [ |
| 71 | + { |
| 72 | + "definition": "ইন্টিজার টাইপের লিস্ট তৈরি করা", |
| 73 | + "code": "List<int> list = new List<int>();" |
| 74 | + },{ |
| 75 | + "definition": "লিস্ট-এর উপাদান সংখ্যা", |
| 76 | + "code": "list.Count" |
| 77 | + },{ |
| 78 | + "definition": "বর্তমান লিস্টের ধারণক্ষমতা", |
| 79 | + "code": "list.Capacity" |
| 80 | + },{ |
| 81 | + "definition": "লিস্টে উপাদান যোগ করা", |
| 82 | + "code": "list.Add()" |
| 83 | + },{ |
| 84 | + "definition": "লিস্টে idx ইন্ডেক্সে value উপাদান যোগ করা", |
| 85 | + "code": "list.Insert(idx, value)" |
| 86 | + },{ |
| 87 | + "definition": "লিস্ট থেকে value উপাদান মুছে ফেলা", |
| 88 | + "code": "list.Remove(value)" |
| 89 | + },{ |
| 90 | + "definition": "লিস্টে idx ইন্ডেক্সের উপাদান মুছে ফেলা", |
| 91 | + "code": "list.RemoveAt(idx)" |
| 92 | + } |
| 93 | + ] |
| 94 | + },{ |
| 95 | + "title": "ডিকশনারি ক্লাস", |
| 96 | + "items": [ |
| 97 | + { |
| 98 | + "definition": "ডিকশনারি তৈরি করা", |
| 99 | + "code": "Dictionary<TKey,TValue> dict = new Dictionary<TKey,TValue>();" |
| 100 | + },{ |
| 101 | + "definition": "ডিকশনারি-এর উপাদান সংখ্যা", |
| 102 | + "code": "dict.Count" |
| 103 | + },{ |
| 104 | + "definition": "ডিকশনারিতে key এর উপস্থিতি যাচাই করা", |
| 105 | + "code": "dict.ContainsKey(key)" |
| 106 | + },{ |
| 107 | + "definition": "ডিকশনারিতে key, value যুগলের উপস্থিতি যাচাই করা", |
| 108 | + "code": "dict.ContainsKey(ew KeyValuePair<int,string>(key, value))" |
| 109 | + },{ |
| 110 | + "definition": "key এর ভিত্তিতে ডিকশনারি থেকে উপাদান মুছে ফেলা", |
| 111 | + "code": "dict.Remove(key)" |
| 112 | + } |
| 113 | + ] |
68 | 114 | } |
69 | 115 | ] |
70 | 116 | } |
0 commit comments