C# में सरणी वर्ग की GetLowerBound() विधि सरणी में निर्दिष्ट आयाम की निचली सीमा प्राप्त करती है।
सबसे पहले, सरणी सेट करें और नीचे दिखाए गए अनुसार निचली सीमा प्राप्त करें -
arr.GetLowerBound(0).ToString()
C# में GetLowerBound () विधि के उपयोग को बताते हुए एक उदाहरण निम्नलिखित है।
उदाहरण
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace lower {
class Program {
static void Main(string[] args) {
Array arr = Array.CreateInstance(typeof(String), 3);
arr.SetValue("Car", 0);
arr.SetValue("Truck", 1);
arr.SetValue("Motorbike", 2);
Console.WriteLine("Lower Bound {0}",arr.GetLowerBound(0).ToString());
Console.ReadLine();
}
}
} आउटपुट
Lower Bound 0