acc.accountNo = 10; Console.WriteLine(acc.accountNo);
Student s = new Student(); s[1, 2] = 35;
class Student
{
int[ ] a = new int[5, 5];
public property WriteOnly int this[int i, int j]
{
set
{
a[i, j] = value;
}
}
}
class Student
{
int[ , ] a = new int[5, 5];
public int property WriteOnly
{
set
{
a[i, j] = value;
}
}
}
class Student
{
int[ , ] a = new int[5, 5];
public int this[int i, int j]
{
set
{
a[i, j] = value;
}
}
}
class Student
{
int[ , ] a = new int[5, 5];
int i, j;
public int this
{
set
{
a[i, j] = value;
}
}
}
class Student
{
int[ , ] a = new int[5, 5];
public int this[int i, int j]
{
set
{
a[i, j] = value;
}
}
}
Sample m = new Sample();
m.Length = 10;
Sample m = new Sample();
m.Length = m.Length + 20;
Sample m = new Sample();
int l;
l = m.Length;
Sample.Length = 20;
Console.WriteLine(Sample.Length);
Sample m = new Sample();
int l;
l = m.Length;
Sample.Length = 20;
Sample m = new Sample(); m.Length = 10;
Console.WriteLine(Sample.Length);
Sample m = new Sample(); int len; len = m.Length;
Sample m = new Sample(); m.Length = m.Length + 20;
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.