is there a difference between the following:
Rectangle r = new Rectangle (10,20,30,40);
Rectangle r = Rectangle.FromL TRB(10,20,30,40 );
Also, I guess I'm not sure why Structs are created with a NEW keyword,
anyway. Aren't they located on the stack, like values, and isn't NEW
used to create space on the heap?
Dom
Rectangle r = new Rectangle (10,20,30,40);
Rectangle r = Rectangle.FromL TRB(10,20,30,40 );
Also, I guess I'm not sure why Structs are created with a NEW keyword,
anyway. Aren't they located on the stack, like values, and isn't NEW
used to create space on the heap?
Dom
Comment