/// <summary> /// Initializes a new instance of the SByteValue by deep copying the supplied SByteValue class. /// </summary> /// <param name="source">The source SByteValue class.</param> public SByteValue(SByteValue source) : base(source) { if (source == null) { throw new ArgumentNullException(nameof(source)); } }
/// <summary> /// Returns the SByte representation of an SByteValue object. /// </summary> /// <param name="xmlAttribute"> /// An SByteValue object to retrieve an SByte representation. /// </param> /// <returns>An SByte value that represents an SByteValue object.</returns> public static SByte ToSByte(SByteValue xmlAttribute) { if (xmlAttribute == null) { throw new InvalidOperationException(ExceptionMessages.ImplicitConversionExceptionOnNull); } return(xmlAttribute.Value); }
/// <summary> /// Returns the <see cref="sbyte"/> representation of an <see cref="SByteValue"/> object. /// </summary> /// <param name="value"> /// An <see cref="SByteValue"/> object to retrieve an <see cref="sbyte"/> representation. /// </param> /// <returns>An <see cref="sbyte"/> value that represents an <see cref="SByteValue"/> object.</returns> public static sbyte ToSByte(SByteValue value) { if (value is null) { throw new InvalidOperationException(ExceptionMessages.ImplicitConversionExceptionOnNull); } return(value.Value); }
/// <summary> /// Initializes a new instance of the SByteValue by deep copying the supplied SByteValue class. /// </summary> /// <param name="source">The source SByteValue class.</param> public SByteValue(SByteValue source) : base(source) { }