Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wat

Name: Anonymous 2011-08-14 23:38

So in C++ I could do

class A {
    int B();
}

int A::B()
{
    return 1;
}


i.e. I could keep my class definition and the code for the methods separate, but I can't figure out how to do the same thing in C#.  Do I really have to use "partial class A {}" in front of everything?

Name: Anonymous 2011-08-14 23:53

>>2
Well I can count at least two reasons I should be able to do it:

1) I like it better that way.  Keeping structure and details separate makes things more readable IMO.

and
 
2) It's always been that way, and there was no reason to take the ability away.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List