G 
		
								
				
				
			
		Guest
Is it possible to get property name from an Object?  For example I have this
class:
public class Person {
public string Address {get; set; }
}
Is there a way to get the property name "Address"?
Person p = new Person();
p.Address = "test"; // normally, we would know the name
p.PropertyName[0]; // This would return the name "Address", Does C# got
something like this??
				
			class:
public class Person {
public string Address {get; set; }
}
Is there a way to get the property name "Address"?
Person p = new Person();
p.Address = "test"; // normally, we would know the name
p.PropertyName[0]; // This would return the name "Address", Does C# got
something like this??
