ATMLModelLibrary.model.Quantity.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : object
return object
        public object Clone()
        {
            var clone = new Quantity();
            clone.Value = Value;
            if (Unit != null)
                clone.Unit = Unit.Clone() as StandardUnit;
            return clone;
        }

Usage Example

Example #1
0
        public object Clone()
        {
            var clone = new RangingInformation();

            clone._fromQuantity = _fromQuantity.Clone() as Quantity;
            clone._toQuantity   = _toQuantity.Clone() as Quantity;
            clone.ErrorLimit    = _errorLimit.Clone() as ErrorLimit;
            clone.Magnitude     = _magnitude;
            return(clone);
        }
All Usage Examples Of ATMLModelLibrary.model.Quantity::Clone