shosho shosho

shosho shosho

  • NA
  • 56
  • 17.7k

Using properties from one class in another class

Sep 28 2015 2:20 AM
I have a class A which has 2 other classes B & C inside it.
 Each of those classes has properties .  i want to use these properties in another class. how can this be done?
 
public class A   
{ 
public class B      { public int id{ get; set; }         public string name{ get; set; } public year { get; set; } } 
public class C      { public string name { get; set; }}
 }

Answers (5)