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); })); }
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); } })); }