private void ProcessMap(object obj, Dictionary <string, myPropInfo> props, Dictionary <string, object> dic) { foreach (KeyValuePair <string, object> kv in dic) { myPropInfo p = props[kv.Key]; object o = p.getter(obj); Type t = Type.GetType((string)kv.Value); if (t == typeof(Guid)) { p.setter(obj, CreateGuid((string)o)); } } }
private static void ProcessMap(object obj, Dictionary <string, myPropInfo> props, Dictionary <string, object> dic) { foreach (KeyValuePair <string, object> kv in dic) { myPropInfo p = props[kv.Key]; object o = p.getter(obj); // blacklist checking Type t = //Type.GetType((string)kv.Value); Reflection.Instance.GetTypeFromCache((string)kv.Value, true); if (t == typeof(Guid)) { p.setter(obj, Helper.CreateGuid((string)o)); } } }