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:51

There is no reason to keep class definitions and code separate. It's a holdover from the days of K&R where compile times where actually a problem and all compilers were single pass.

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