Esempio n. 1
0
 private void WriteCallbackAction(CallbackAction callbackAction, XmlWriter writer, string tagName)
 {
     if (!CallbackAction.IsNullOrInvalid(callbackAction))
     {
         writer.WriteStartElement(tagName);
         writer.WriteAttributeString("method", callbackAction.MethodType);
         writer.WriteValue(GetXmlStringValue(callbackAction.MethodValue));
         writer.WriteEndElement();
     }
 }
Esempio n. 2
0
 private void WriteCallbackAction(CallbackAction callbackAction, XmlWriter writer, string tagName)
 {
     if (!CallbackAction.IsNullOrInvalid(callbackAction))
     {
         writer.WriteStartElement(tagName);
         writer.WriteAttributeString("method", callbackAction.MethodType);
         writer.WriteValue(GetXmlStringValue(callbackAction.MethodValue));
         writer.WriteEndElement();            
     }
 }
Esempio n. 3
0
 public static bool IsNullOrInvalid(CallbackAction callbackAction)
 {
     return(callbackAction == null || !callbackAction.IsValid);
 }
Esempio n. 4
0
 public static bool IsNullOrInvalid(CallbackAction callbackAction)
 {
     return callbackAction == null || !callbackAction.IsValid;
 }