MSU

MSU

  • NA
  • 25
  • 1.8k

Partial classes under same namespace

Aug 11 2017 2:59 AM
Can someone please help me here as i am doing following things for this.
 
I have total two assemblies in my project named as "PracticeTest" and "ClassLibrary3" .
 
PracticeTest assembly has namespace "PracticeTest" and the very same namespace has been used in another assembly"ClassLibrary3".
 
I have a class "Test" under the namespace "PracticeTest" of first assembly"" and need to have another definition of this class "Test" in other assembly "ClassLibrary3" but using the same namespace.
 
I have used partial key word as " public partial class Test" for both of them.
 
Also have done "Add reference" process for my current assembly"PracticeTest" which is executable assembly.
  
But I am unable to use another definition of this class and getting a warning message like below
 

Answers (2)