Mapping object to dictionary and vice versa
-
31-10-2019 - |
Pregunta
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";
// ..........
No hay solución correcta
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow