Mapping object to dictionary and vice versa
Using some reflection and generics in two extension methods you can achieve that. Right, others did mostly the same solution, but this uses less reflection which is more performance-wise and way more readable: public static class ObjectExtensions { public static T ToObject<T>(this IDictionary<string, object> source) where T : class, new() { var someObject = new … Read more