Console.Write("Enter size of array");int n = Convert.ToInt16(Console.ReadLine());
int[] dynamicSizedArray= new int[n]; // Here we have created an array of size nConsole.WriteLine("Input Elements");for(int i=0;i<n;i++){dynamicSizedArray[i] = Convert.ToInt32(Console.ReadLine());}
Console.WriteLine("Elements of array are :");foreach (int i in dynamicSizedArray){Console.WriteLine(i);}Console.ReadKey();
public class Page{
private string data;
public Page(){}
public Page(string data){this.Data = data;}
public string Data{get{return this.data;}set{this.data = value;}}}
Class x {private static Option[] options = () => {Lots of prep stuff here that means we can not just use the next linereturn (someSourceOfData).Select(dataitem => new Option(){field=dataitem.value,field2=dataitem.othervalue});}}