K
K Viltersten
I wish to send in a struct called Str
as a parameter to a method. Do i have
to create it first and then send it
in or is it possible to create in
upon construction?
For a class i'd do this.
doSomething (new MyClass (1));
How can i do this for a struct?
as a parameter to a method. Do i have
to create it first and then send it
in or is it possible to create in
upon construction?
For a class i'd do this.
doSomething (new MyClass (1));
How can i do this for a struct?