Пример #1
0
 //GJ: Patch
 /// <param name="localName">the localname of the element</param>
 /// <param name="input">the value of the element</param>
 /// <param name="required">boolean that determines if input cannot be null</param>
 protected void WriteAttribute(string localName, DBBool input, bool required)
 {
     if (!input.IsNull)
     {
         writer.WriteAttributeString(localName, XmlConvert.ToString(input.IsTrue));
     }
     else if (required)
     {
         throw new ArgumentException(localName + " cannot be null.");
     }
 }
Пример #2
0
 //GJ: Patch
 /// <param name="localName">the localname of the element</param>
 /// <param name="input">the value of the element</param>
 /// <param name="required">boolean that determines if input cannot be null</param>
 protected void WriteAttribute(string localName, DBBool input, bool required)
 {
     if (!input.IsNull)
         writer.WriteAttributeString(localName, XmlConvert.ToString(input.IsTrue));
     else if (required)
         throw new ArgumentException(localName + " cannot be null.");
 }