I have a data contract class like this
[Serializable]
[DataContract]
public class Address:Email
{
[DataMember]
public long AddressId { get; set; }
}
another data contract class like
[Serializable]
[DataContract]
public class Email:someother class
{
[DataMember]
public long EmailId { get; set; }
}
another data contract class like
[Serializable]
[DataContract]
public class Phone
{
[DataMember]
public long PhoneId { get; set; }
}
Now i want to use the AddressId, EmailId, PhoneId in the same method.
I want to use all the three in a single instance.
for example:
Address obj=new Address();
obj.AddressId="1";
and now i want to get
obj.EmailId="3";
and
obj.PhoneId=4;
How it is possible??
Vara Prasad.M