Hello ,
Is it possible to define a member function outside Class body in C# like we do in C++?
Thanks in advance.
$and!p
Hello ,
Is it possible to define a member function outside Class body in C# like we do in C++?
Thanks in advance.
$and!p
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SANDIPPosted Dec 11, 2007, 8:47 AM
AlanPosted Dec 11, 2007, 8:29 AM
No, in C#, every method has to be declared inside either a class or struct.