using System.Runtime.Serialization; using JD.Kernel.StaticHelpers; namespace JD.Serializers { /// /// Provides helpful functions of serialization. /// public static class SerializerHelper { /// /// Gets the value on the name. /// public static TValue GetValue(string name, SerializationInfo info) { Throw.IfEmpty(name, "name"); Throw.IfNull(info, "info"); return (TValue)info.GetValue(name, typeof(TValue)); } } }