private bool Equals(PrimaryValue pOther) { return Equals(_value, pOther._value) && _type == pOther._type; }
/// <summary> /// Copy constructor. /// </summary> public PrimaryValue(PrimaryValue pValue) { _value = pValue._value; _type = pValue._type; }
/// <summary> /// Assign the value from another primary value object. /// </summary> /// <param name="pValue"></param> public void set(PrimaryValue pValue) { if (_type != pValue._type) { throw new ModelException("PrimaryValues are not of the same type."); } _value = pValue._value; }