Can i have a two partial classes with same name in a two different namespace? is it work ?
for ex
namespace1
{
partial class A
{
}
}
namespace2
{
partial class A
{
}
}
is it work?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 3, 2012, 5:58 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 3, 2012, 5:40 AM EDT
Code similar to what you have will compile but the A's in each namespace will be different classes i.e. they won't be partial classes of each other.
MuthuMari MRank #5,738 · 288 reputationPosted Apr 3, 2012, 8:53 PM EDT