private void ProcessMap(object obj, Dictionary <string, myPropInfo> props, Dictionary <string, object> dic) { foreach (KeyValuePair <string, object> pair in dic) { myPropInfo info = props[pair.Key]; object obj2 = info.getValue(obj); if (Type.GetType((string)pair.Value) == typeof(Guid)) { info.setValue(obj, this.CreateGuid((string)obj2)); } } }
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.getValue(obj); Type t = Type.GetType((string)kv.Value); if (t == typeof(Guid)) { p.setValue(obj, CreateGuid((string)o)); } } }