Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how use call two class same name in to Folder Separate asp.net c#
Collapse | Copy Code

app_code --> a -->test.cs

app_code --> b -->test.cs
Posted
Comments
[no name] 10-Sep-12 12:29pm    
Wow this looks so familiar....

Put them in different namespaces.

For example:
C#
namespace A 
{
    class C { }
}

namespace B 
{
    class C { }
}
 
Share this answer
 
Comments
saeed1364 10-Sep-12 13:33pm    
i know namespace. how to call
lewax00 10-Sep-12 14:17pm    
A.C to use the one in namespace A, B.C for the one in namespace B.
You can use the concept of partial classes[^] to have multiple different files having the same class name.
 
Share this answer
 
Comments
saeed1364 10-Sep-12 13:34pm    
i know namespace. how to call

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