Click here to Skip to main content
15,886,362 members

Comments by kalaiselvant (Top 1 by date)

kalaiselvant 25-Mar-13 5:01am View    
Thanks Maciej Los, but i am not expecting this.
Actually my requirement is , I want to add a new attribute to the base class from its derived class.

example I have a class A:
public class A
{
public string Name{get;set;}
public string Age{get;set;}
}

and class 'B' doesnot knw abt 'A' but it s derived from A:
public class B:A
{
---
---
}

Now I want to add a new attribute/property in Class 'A'(not in B) by its object, is it possible ?