/// <summary> /// Deserializes the given byte array to a dictionary of your choice /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TX"></typeparam> /// <param name="input"></param> /// <returns></returns> public static Dictionary <T, TX> DeSerialize <T, TX>(this byte[] input) { return(DictionarySerializer <T, TX> .Deserialize(input)); }
public static Dictionary <T, TX> DeSerialize <T, TX>(this BinaryReader input) { return(DictionarySerializer <T, TX> .Deserialize(input)); }
/// <summary> /// Serializes a Dictionary<T,TX> to a handy byte array /// </summary> /// <typeparam name="T">Dictionary Key</typeparam> /// <typeparam name="TX">Dictionary Value</typeparam> /// <param name="input">Input dictionary</param> /// <returns></returns> public static byte[] Serialize <T, TX>(this Dictionary <T, TX> input) { return(DictionarySerializer <T, TX> .Serialize(input)); }