hi there!)
mates, I had a class - something like that -
public class asd()
{
public int filed;
}
please tell me - what is the difference between next two ways of memory allocation (as I undestand they both can be compiled...) -
1)
static void Main() {
asd a1 = new asd();
a1.filed= 1;
}
2)
static void Main() {
asd a1 = null;
a1.filed= 1;
}
big thanks in advance)