B
Brett Romero
I'd like to get the string name of a specific public class property.
Say I have a class named Person with a public property named PersonId
(Int32 type). I create a new person object and do
p.PersonId.ToString(). This returns the default value of PersonId -
zero. I want it to return the string "PersonId". Any suggestions?
Thanks,
Brett
Say I have a class named Person with a public property named PersonId
(Int32 type). I create a new person object and do
p.PersonId.ToString(). This returns the default value of PersonId -
zero. I want it to return the string "PersonId". Any suggestions?
Thanks,
Brett