This Dia

This Dia

  • NA
  • 1
  • 0

Easy static method question

Aug 23 2006 9:48 AM

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
 

Answers (1)