예제 #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.");
 }