Beispiel #1
0
 internal static T Deserialize <T>(string serializedXML, PropertyDefinition configXmlRawProperty) where T : class
 {
     return(XMLSerializableBase.DeserializeFromStringInternal <T>(serializedXML, delegate(Exception e)
     {
         throw new DataValidationException(new PropertyValidationError(DirectoryStrings.CannotCalculateProperty(configXmlRawProperty.Name, e.Message), configXmlRawProperty, serializedXML), e);
     }));
 }
Beispiel #2
0
 public static T Deserialize <T>(string serializedXML, bool throwOnError = true) where T : class
 {
     return(XMLSerializableBase.DeserializeFromStringInternal <T>(serializedXML, delegate(Exception e)
     {
         if (throwOnError)
         {
             throw new UnableToDeserializeXMLException(e.Message, e);
         }
     }));
 }