Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello World:
I want To have Partial Class on Tree View Format Such as Windows Form(it has Code, Designer, resc)or Component( it has Code and Designer)
It's important for me that they shows to my on Tree View.
for Example :
---- MyClass.cs
-------MyClass.FavoriteName1.cs
-------MyClass.FavoriteName2.cs
-------
.
.

is it possible?
Posted
Comments
Sergey Alexandrovich Kryukov 19-Oct-12 12:58pm    
Not clear at all. What tree view? Of Visual Studio? Of your application? If so, what this application does?
Most likely, the question makes no sense at all.
--SA

1 solution

Format for a partial class.

C#
File - MyClass.1.cs
     public partial MyClass
     ...

File - MyClass.2.cs
     public partial MyClass
     ...


File names are irrelevant and exist merely so show that two files would be used.

The only requirement is that you have declarations for the class in two or more places (can just have one class but that really is ignoring the point.)

The compiler and all users treat the class as ONE class.


It is possible from your question that you think it might treat it as two classes. If so then the answer to your question is no it is not possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900