Interview Questions → CSHARP 2.0 → C# 2.0 Questionnaire IV
C# 2.0 Questionnaire IV
System.Security.Principal.WindowsIdentity.GetCurrent().Name
List<int> lst = new List<int>() { 1, 2, 3, 4, 5, 6, 7 };
lst.RemoveRange(3, 4);
int[][] array = new int[2][];
array[0] = new int[] { 1, 2, 3 };
array[1] = new int[] { 4, 5, 6 };
for (int i = 0; i < array.Length; i++)
{
for (int j = 0; j < array[i].Length; j++)
{
Console.WriteLine(array[i][j]);
}
}
public abstract class MyAbstractClass
{
private MyAbstractClass()
{
}
public abstract void Display();
}
public class DerivedClass : MyAbstractClass
{
public DerivedClass()
{
}
public override void Display()
{
throw new NotImplementedException();
}
}
//C#
ArrayList list = new ArrayList();
‘vb.net
Dim list as new ArrayList()