Exemple #1
0
        /// <summary>
        /// Returns the internal Boolean representation of a TrueFalseBlankValue object.
        /// </summary>
        /// <param name="xmlAttribute">A TrueFalseBlankValue object to retrieve an internal Boolean representation.</param>
        /// <returns>A Boolean value that represents a TrueFalseBlankValue object.</returns>
        public static bool ToBoolean(TrueFalseBlankValue xmlAttribute)
        {
            if (xmlAttribute == null)
            {
                throw new InvalidOperationException(ExceptionMessages.ImplicitConversionExceptionOnNull);
            }

            return(xmlAttribute.Value);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TrueFalseBlankValue"/> class using the supplied TrueFalseBlankValue class.
 /// </summary>
 /// <param name="source">The source <see cref="TrueFalseBlankValue"/> class.</param>
 public TrueFalseBlankValue(TrueFalseBlankValue source)
     : base(source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     Initialize();
     _impl.InnerText = source.InnerText;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrueFalseBlankValue"/> class using the supplied TrueFalseBlankValue class.
 /// </summary>
 /// <param name="source">The source <see cref="TrueFalseBlankValue"/> class.</param>
 public TrueFalseBlankValue(TrueFalseBlankValue source)
     : base(source)
 {
 }