Hello guys,
I am new to C# and I have encountered a problem.
I need to have a static method in a class that will return me the object of that class.
Something like this:
Class C
Public static void DoSomething() {}
and in the main
C c = DoSomething()
Can anybody help me please. What can I put instead of void in the method so I can have the solution?
Thank you
Easy static method question
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
mstfckr4 pointsPosted Aug 24, 2006, 1:23 AM EDT