/// <summary> /// Attempt to deserialize any XML string into an object. /// </summary> /// <param name="input">The string to deserialize to an object.</param> /// <param name="type">The type to convert to.</param> /// <returns>An Object deserialized from the string.</returns> public static Object FromXML(this String input, Type type) { return(DDRIT.FromXML(input, type)); }
/// <summary> /// Attempt to deserialize any XML string into an object. /// </summary> /// <typeparam name="TResult">The type to convert to.</typeparam> /// <param name="input">The string to deserialize to an object.</param> /// <returns>An Object of type T deserialized from the string.</returns> public static TResult FromXML <TResult>(this String input) { return(DDRIT.FromXML <TResult>(input)); }
/// <summary> /// Attempt to deserialize any XML string into an object. /// </summary> /// <typeparam name="TResult">The type to convert to.</typeparam> /// <param name="input">The string to deserialize to an object.</param> /// <returns>An Object of type T deserialized from the string.</returns> public static TResult FromXML <TResult>(this String input) { Object buffer = DDRIT.FromXML(input, typeof(TResult)); return((buffer == null) ? default(TResult) : (TResult)buffer); }