R
Roger Webb
Hey Yall,
I'm trying to get a list of properties in an object and am having trouble with the Values. My main Problem is with the difference in the types... For integers I want just the Value.ToString() but for Strings and other types I want it with quotes around it. Any Ideas??
Type DRType = request.GetType();
PropertyInfo[] PropInfo = DRType.GetProperties();
foreach(PropertyInfo prop in PropInfo)
{
Listing.Append(prop.Name+" "+?????);
}
- Roger
I'm trying to get a list of properties in an object and am having trouble with the Values. My main Problem is with the difference in the types... For integers I want just the Value.ToString() but for Strings and other types I want it with quotes around it. Any Ideas??
Type DRType = request.GetType();
PropertyInfo[] PropInfo = DRType.GetProperties();
foreach(PropertyInfo prop in PropInfo)
{
Listing.Append(prop.Name+" "+?????);
}
- Roger