示例#1
0
        public virtual ValueTypeValue <T> AsReadOnly()
        {
            ValueTypeValue <T> readOnlyValueTypeValue = (ValueTypeValue <T>) this.Clone();

            readOnlyValueTypeValue.readOnly = true;
            return(readOnlyValueTypeValue);
        }
示例#2
0
 protected ValueTypeValue(ValueTypeValue <T> original, Cloner cloner)
     : base(original, cloner)
 {
     this.value    = original.value;
     this.readOnly = original.readOnly;
 }