예제 #1
0
        public PropertyBlock(PropertyGetBlock getBlock, PropertySetBlock setBlock)
            : base()
        {
            GetAccessor = getBlock;
            SetAccessor = setBlock;

            Init();
        }
예제 #2
0
        public PropertyBlock()
            : base()
        {
            GetAccessor = new PropertyGetBlock();
            SetAccessor = new PropertySetBlock();

            Init();
        }
예제 #3
0
        public PropertyBlock(PropertyGetBlock getBlock, PropertySetBlock setBlock)
            : base()
        {
            GetAccessor = getBlock;
            SetAccessor = setBlock;

            Init();
        }
예제 #4
0
        public PropertyBlock()
            : base()
        {
            GetAccessor = new PropertyGetBlock();
            SetAccessor = new PropertySetBlock();

            Init();
        }
예제 #5
0
 private void AssignGetAccessor(PropertyGetBlock value)
 {
     if (value == null && mGetAccessor != null)
     {
         if (SetAccessor == null)
         {
             this.ReplaceWithField();
         }
         else
         {
             BlockActions.DeleteBlock(mGetAccessor);
         }
     }
     else if (mGetAccessor == null && value != null)
     {
         this.VMembers.AddToBeginning(value);
     }
     else if (mGetAccessor != null && value != null)
     {
         mGetAccessor.Replace(value);
     }
     mGetAccessor = value;
 }
예제 #6
0
 private void AssignGetAccessor(PropertyGetBlock value)
 {
     if (value == null && mGetAccessor != null)
     {
         if (SetAccessor == null)
         {
             this.ReplaceWithField();
         }
         else
         {
             BlockActions.DeleteBlock(mGetAccessor);
         }
     }
     else if (mGetAccessor == null && value != null)
     {
         this.VMembers.AddToBeginning(value);
     }
     else if (mGetAccessor != null && value != null)
     {
         mGetAccessor.Replace(value);
     }
     mGetAccessor = value;
 }