[
और ]
स्क्वायर ब्रैकेट हैं। आपके उपयोग में, वे एक विशेषता इंगित करते हैं। जब अन्य संदर्भों में उपयोग किया जाता है, तो वे किसी प्रकार का अनुक्रमण इंगित करते हैं।
उदाहरण
int[] intArray = new int[6]; //Initializes an array of 6 integers
intArray[0] = 1; //Assigns the value 1 to the first (zero-based) index of intArray
string connString = ConfigurationManager.ConnectionStrings["default"].ConnectionString;
//The above uses "text indexing" to find the connection string in your App.config
// or Web.config with a key with the provided string (in this case "default")
आप भी इस तरह के डेटासेट के रूप में या तो इंडेक्स नंबर, या नाम से वर्ग brakets उपयोग कर सकते हैं संग्रह में कुंजी नाम से शब्दकोश आइटम, तत्वों को आकर्षित करने, आदि
इसके अलावा सरणियों के लिए इस्तेमाल किया, इंडेक्स, पॉइंटर्स: http://msdn.microsoft.com/en-us/library/a3hd7ste.aspx – cofiem
+1 दस्तावेज़ों को जोड़ने के लिए +1 – Mizipzor
@cofiem: इसे 'इंडेक्सर' – abatishchev