C# में Array क्लास का 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("निचली सीमा {0}",arr.GetLowerBound(0).ToString());
Console.ReadLine();
}
}
}
आउटपुट
यह निम्नलिखित आउटपुट देगा -
निचली सीमा 0