public static ApplicationInfo Deserialize([NotNull] string environment, [NotNull] string application, [CanBeNull] byte[] data) { if (data == null || data.Length == 0) { return(new ApplicationInfo(environment, application, null)); } var reader = new BinaryBufferReader(data, 0); var properties = reader.ReadDictionary(r => r.ReadString(), r => r.ReadString()); return(new ApplicationInfo(environment, application, properties)); }
private static Dictionary <string, string> DeserializeProperties(BinaryBufferReader reader) { return(reader.ReadDictionary(r => r.ReadString(), r => r.ReadString())); }