>
{[i]=default (T);
}
} void Show ()
{(T item in aa)
{. WriteLine ( + item + );
}
} T GetElement (int qwe)
{aa [qwe];
}
} Program
{void Main (string [] args)
{prov= raquo ;; index=0; lt; string gt; a1=null; lt; int gt; a2=null; lt; double gt; a3=null; lt; char gt; a4=null; control= raquo ;; (control!= ex )
{. WriteLine ( 1 - Create Array * ) ;. WriteLine ( 2 - Get Lenght Array * ) ;. WriteLine ( 3 - Get Element * ) ;. WriteLine ( 4 - Resize Array * ) ;. WriteLine ( 5 - Clear Array * ) ;. WriteLine ( 6 - Copy Array * ) ;. WriteLine ( * ************************ );=Console.ReadLine () ;. Clear (); (control)
{ 1 :. WriteLine ( What array create? string, int, double, char? ); s_c=Console.ReadLine ();=s_c; (s_c == string )
{. Write ( Enter array lenght: );=int.Parse (Console.ReadLine ());=new MyGenericClass lt; string gt; (index); (int i=0; i lt; index; i ++)
{. ArrayAdd (Console.ReadLine ());
}
} (s_c == int )
{. Write ( Enter array lenght: );=int.Parse (Console.ReadLine ());=new MyGenericClass lt; int gt; (index); (int i=0; i lt; index; i ++)
{. ArrayAdd (int.Parse (Console.ReadLine ()));
}
} (s_c == double )
{. Write ( Enter array lenght: );=int.Parse (Console.ReadLine ());=new MyGenericClass lt; double gt; (index); (int i=0; i lt; index; i ++)
{. ArrayAdd (double.Parse (Console.ReadLine ()));
}
} (s_c == char )
{. Write ( Enter array lenght: );=int.Parse (Console.ReadLine ());=new MyGenericClass lt; char gt; (index); (int i=0; i lt; index; i ++)
{. ArrayAdd (char.Parse (Console.ReadLine ()));
}
}. ReadKey () ;. Clear () ;; 2 :( prov == string )
{. WriteLine (a1.GetLength ());
} (prov == int )
{. WriteLine (a2.GetLength ());
} (prov == double )
{. WriteLine (a3.GetLength ());
} (prov == char )
{. WriteLine (a4.GetLength ());
}. ReadKey () ;. Clear () ;; 3 :( prov == string )
{. Write ( Enter index: ); ind_dost=int.Parse (Console.ReadLine ()) ;. WriteLine (a1.GetElement (ind_dost - 1));
} (prov == int )
{. Write ( Enter index: ); ind_dost=int.Parse (Console.ReadLine ()) ;. WriteLine (a2.GetElement (ind_dost - 1));
} (prov == double )
{. Write ( Enter index: ); ind_dost=int.Parse (Console.ReadLine ()) ;. WriteLine (a3.GetElement (ind_dost - 1));
} (prov == char )
{. Write ( Enter index: ); ind_dost=int.Parse (Console.ReadLine ()) ;. WriteLine (a4.GetElement (ind_dost - 1));
}. ReadKey () ;. Clear () ;; 4 :( prov == string )
{. Write ( Enter new size: ); new_size=int.Parse (Console.ReadLine ()) ;. ArrayResize (new_size);
} (prov == int )
{. Write ( Enter new size: ); new_size=int.Parse (Console.ReadLine ()) ;. ArrayResize (new_size);
} (prov == double )
{. Write ( Enter new size: ); new_size=int.Parse (Console.ReadLine ()) ;. ArrayResize (new_size);
} (prov == char )
{. Write ( Enter new size: ); new_size=int.Parse (Console.ReadLine ()) ;. ArrayResize (new_size);
}. ReadKey () ;. Clear () ;; 5 :( prov == string )
{. ArrayClear ();
} (prov == int )
{. ArrayClear ();
} (prov == double )
{. ArrayClear ();
} (prov == char )
{. ArrayClear ();
}. ReadKey () ;. Clear () ;; 6 :( prov == string )
{ lt; string gt; copy_a1=new MyGenericClass lt; string gt; (a1); _ a1.Show ();
} (prov == int )
{ lt; int gt; copy_a2=new MyGenericClass lt; int gt; (a2); _ a2.Show ();
} (prov == double )