Имеется следующий класс:
public class MyClass
{
public string StrProp1 {get; set;}
public string StrProp2 {get; set;}
public int IntProp {get; set;}
public DateTime? DTNullableProp {get; set;}
public int? IntNullableProp {get; set;}
}
Как получить коллекцию, например Dictionary<string, string>
с парами "имя свойства" -> "значение". Значения, соответственно приводятся к типу string.