public PropertyBlock(PropertyGetBlock getBlock, PropertySetBlock setBlock) : base() { GetAccessor = getBlock; SetAccessor = setBlock; Init(); }
public PropertyBlock() : base() { GetAccessor = new PropertyGetBlock(); SetAccessor = new PropertySetBlock(); Init(); }
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; }