C
christery
read something on yoda by Jo I think...
annoying ... not like C I think... thougth I got it but no... what am
I missing...
public struct S
{ public int i;}
public class C
{ public int i;}
class Program
{
static void Main(string[] args){
S a = new S();
C c = new C();
a.i=5;
c.i = 5;
S b = a;
C d = c;
a.i=6;
c.i = 6;
Console.WriteLine(b.i); //5 huh?
Console.WriteLine(d.i); // 6 yess....
Console.ReadLine();
}
}
//CY
annoying ... not like C I think... thougth I got it but no... what am
I missing...
public struct S
{ public int i;}
public class C
{ public int i;}
class Program
{
static void Main(string[] args){
S a = new S();
C c = new C();
a.i=5;
c.i = 5;
S b = a;
C d = c;
a.i=6;
c.i = 6;
Console.WriteLine(b.i); //5 huh?
Console.WriteLine(d.i); // 6 yess....
Console.ReadLine();
}
}
//CY