internal bool HashEquals(ModelRoot model) { return(ModelRoot.GetHash(this).Equals(ModelRoot.GetHash(model))); }
/// <summary> /// Loads a model from a stream, generating a hash in the process. /// The hash is used to determine whether the Model has unsaved changes. /// </summary> /// <typeparam name="T">The type of the root object in the Model.</typeparam> /// <param name="stream">The stream from which to load the Model.</param> /// <returns>The deserialized Model.</returns> protected internal static T Load <T> (Stream stream) where T : ModelRoot { return(ModelRoot.Load <T> (stream, null)); }