Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# class separation into a header and a .cs file

Tags:

c#

class

Is there a way to separate a C# class into a header that contains the class definition and then an actual .cs file that contains the implementation? I suppose one can do this by creating an interface, but that doesn't seem right. I just want a file where I can just see the class design, and not all the detail. It's easy enough to do in C++, but I haven't seen it done with C#.

Thanks in advance.

like image 935
Aseem Avatar asked Nov 26 '22 21:11

Aseem


1 Answers

That's a wrong approach. C# isn't C++. Forget about header files.

If you want the class summary, just open the Object Browser in Visual Studio. It will give you the signature of all the methods within your classes.

like image 186
Joannes Vermorel Avatar answered Dec 07 '22 18:12

Joannes Vermorel