예제 #1
0
 /// <summary>
 /// Initializes a new instance of the UInt64Value class by deep copying the UInt64Value class.
 /// </summary>
 /// <param name="source">The source UInt64Value class.</param>
 public UInt64Value(UInt64Value source)
     : base(source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
 }
예제 #2
0
        /// <summary>
        /// Returns the UInt64 value representation of a UInt64Value object.
        /// </summary>
        /// <param name="xmlAttribute">
        /// A UInt64Value object used to retrieve a UInt64 representation.
        /// </param>
        /// <returns>A UInt64 value that represents a UInt64Value object.</returns>
        public static UInt64 ToUInt64(UInt64Value xmlAttribute)
        {
            if (xmlAttribute == null)
            {
                throw new InvalidOperationException(ExceptionMessages.ImplicitConversionExceptionOnNull);
            }

            return(xmlAttribute.Value);
        }
예제 #3
0
        /// <summary>
        /// Returns the <see cref="ulong"/> value representation of a <see cref="UInt64Value"/> object.
        /// </summary>
        /// <param name="value">
        /// A <see cref="UInt64Value"/> object used to retrieve a <see cref="ulong"/> representation.
        /// </param>
        /// <returns>A <see cref="ulong"/> value that represents a <see cref="UInt64Value"/> object.</returns>
        public static ulong ToUInt64(UInt64Value value)
        {
            if (value is null)
            {
                throw new InvalidOperationException(ExceptionMessages.ImplicitConversionExceptionOnNull);
            }

            return(value.Value);
        }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the UInt64Value class by deep copying the UInt64Value class.
 /// </summary>
 /// <param name="source">The source UInt64Value class.</param>
 public UInt64Value(UInt64Value source)
     : base(source)
 {
 }