Beispiel #1
0
 public override void Serialize()
 {
     base.Serialize();
     this.memberStoredData = BloxMemberInfo.EncodeMember(this.member);
     if (this.sourceObjType == DataSourceOject.Instance)
     {
         this.sourceObjData = BloxMemberInfo.EncodeMember(this.instanceMember);
     }
 }
Beispiel #2
0
 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;
         }
     }
 }