Пример #1
0
        /// <summary>
        /// Determines whether two specified <see cref="MidiChunk"/> objects have the same content.
        /// </summary>
        /// <param name="chunk1">The first chunk to compare, or <c>null</c>.</param>
        /// <param name="chunk2">The second chunk to compare, or <c>null</c>.</param>
        /// <param name="settings">Settings according to which chunks should be compared.</param>
        /// <returns><c>true</c> if the <paramref name="chunk1"/> is equal to the <paramref name="chunk2"/>;
        /// otherwise, <c>false</c>.</returns>
        public static bool Equals(MidiChunk chunk1, MidiChunk chunk2, MidiChunkEqualityCheckSettings settings)
        {
            string message;

            return(Equals(chunk1, chunk2, settings, out message));
        }
Пример #2
0
 /// <summary>
 /// Determines whether two specified <see cref="MidiChunk"/> objects have the same content using
 /// the specified comparison settings.
 /// </summary>
 /// <param name="chunk1">The first chunk to compare, or null.</param>
 /// <param name="chunk2">The second chunk to compare, or null.</param>
 /// <param name="settings">Settings according to which chunks should be compared.</param>
 /// <param name="message">Message containing information about what exactly is different in
 /// <paramref name="chunk1"/> and <paramref name="chunk2"/>.</param>
 /// <returns>true if the <paramref name="chunk1"/> is equal to the <paramref name="chunk2"/>;
 /// otherwise, false.</returns>
 public static bool Equals(MidiChunk chunk1, MidiChunk chunk2, MidiChunkEqualityCheckSettings settings, out string message)
 {
     return(MidiChunkEquality.Equals(chunk1, chunk2, settings ?? new MidiChunkEqualityCheckSettings(), out message));
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MidiChunkEqualityComparer"/> with the
 /// specified settings according to which <see cref="MidiChunk"/> objects should
 /// be compared for equality.
 /// </summary>
 /// <param name="settings">Settings according to which <see cref="MidiChunk"/> objects should
 /// be compared for equality.</param>
 public MidiChunkEqualityComparer(MidiChunkEqualityCheckSettings settings)
 {
     _settings = settings ?? new MidiChunkEqualityCheckSettings();
 }