adding a property in the class
-
Hi All! in my application, there is a table tblCountries(countryId,countryName) & i have a class: person public class Person { private string name; private int countryID; public string Name { get {return this.name;} set {this.name = value;} } public string CountryId { get {return this.countryID;} set {this.countryID= value;} } } now i want to add an property CountryName which returns name of the country name rather than country . can any one help me in this regards?
-
Hi All! in my application, there is a table tblCountries(countryId,countryName) & i have a class: person public class Person { private string name; private int countryID; public string Name { get {return this.name;} set {this.name = value;} } public string CountryId { get {return this.countryID;} set {this.countryID= value;} } } now i want to add an property CountryName which returns name of the country name rather than country . can any one help me in this regards?
Smells like homework, but... Check out DataTable.Select.
- S 50 cups of coffee and you know it's on!