public override void Bind(object obj, string name) { object value = MpReflection.GetValue(obj, name); Type type = value.GetType(); Sync.WriteSyncObject(writer, value, type); }
public override void Bind(object obj, string name) { object value = MpReflection.GetValue(obj, name); Type type = value.GetType(); var res = Sync.ReadSyncObject(reader, type); MpReflection.SetValue(obj, name, res); }
public static object GetPropertyOrField(this object obj, string memberPath, object index = null) { return(MpReflection.GetValue(obj, memberPath, index)); }