M
muesliflakes
I come from Java and an Object would be the class whist object would
likly be the varible to an object.
I get the impression with C# that object is just an alias to the Base
Class Object.
Can anyone enlighten me as to any differences and by convention if I
had a method that returns an object should I use one over the other.
public object ReturnIt( ) { return new Blah( ); }
or
public Object ReturnIt( ) { return new Blah( ); }
likly be the varible to an object.
I get the impression with C# that object is just an alias to the Base
Class Object.
Can anyone enlighten me as to any differences and by convention if I
had a method that returns an object should I use one over the other.
public object ReturnIt( ) { return new Blah( ); }
or
public Object ReturnIt( ) { return new Blah( ); }