public virtual ValueTypeValue <T> AsReadOnly() { ValueTypeValue <T> readOnlyValueTypeValue = (ValueTypeValue <T>) this.Clone(); readOnlyValueTypeValue.readOnly = true; return(readOnlyValueTypeValue); }
protected ValueTypeValue(ValueTypeValue <T> original, Cloner cloner) : base(original, cloner) { this.value = original.value; this.readOnly = original.readOnly; }