Example #1
0
 /// <summary>
 /// Converts the XML representation of a action to a ActionSend object.
 /// A return value indicates whether the conversion succeded or not.
 /// <param name="node">A XMLNode containing the action to convert</param>
 /// <param name="result">When this method returns, contains the ActionCheck equivalent to the action
 /// contained in node, if the conversion succeeded, or null if the conversion failed.
 /// The conversion fails if the node parameter is a null reference (Nothing in Visual Basic) or is not of the correct format.
 /// This parameter is passed uninitialized</param>
 /// </summary>
 /// <returns>true if conversion was successfull, false otherwise</returns>
 public static bool TryParse(XmlNode node, out ActionSend result)
 {
     try
     {
         result = Parse(node);
         return(true);
     }
     catch
     {
         result = null;
         return(false);
     }
 }
Example #2
0
 /// <summary>
 /// Converts the XML representation of a action to a ActionSend object.
 /// A return value indicates whether the conversion succeded or not.
 /// <param name="node">A XMLNode containing the action to convert</param>
 /// <param name="result">When this method returns, contains the ActionCheck equivalent to the action
 /// contained in node, if the conversion succeeded, or null if the conversion failed.
 /// The conversion fails if the node parameter is a null reference (Nothing in Visual Basic) or is not of the correct format.
 /// This parameter is passed uninitialized</param>
 /// </summary>
 /// <returns>true if conversion was successfull, false otherwise</returns>
 public static bool TryParse(XmlNode node, out ActionSend result)
 {
     try
     {
         result = Parse(node);
         return true;
     }
     catch
     {
         result = null;
         return false;
     }
 }