public override void Serialize() { base.Serialize(); this.memberStoredData = BloxMemberInfo.EncodeMember(this.member); if (this.sourceObjType == DataSourceOject.Instance) { this.sourceObjData = BloxMemberInfo.EncodeMember(this.instanceMember); } }
void ISerializationCallbackReceiver.OnBeforeSerialize() { if (this._isDirty) { this._isDirty = false; this.storedData = null; if (this.dataContext == DataContext.Constant) { this.constant.Serialize(); this.member = null; this.property = null; } else if (this.dataContext == DataContext.GlobalProperty) { this.storedData = BloxMemberInfo.EncodeMember(this.member); this.constant = null; } } }