Mapping object to dictionary and vice versa
-
31-10-2019 - |
문제
Are there any elegant quick way to map object to a dictionary and vice versa?
Example:
IDictionary<string,object> a = new Dictionary<string,object>();
a["Id"]=1;
a["Name"]="Ahmad";
// .....
becomes
SomeClass b = new SomeClass();
b.Id=1;
b.Name="Ahmad";
// ..........
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow