Esempio n. 1
0
 /// <summary>
 /// Creates a <see cref="HashCode"/> from the given values.
 /// </summary>
 /// <typeparam name="T">The type of value to create the hash code from.</typeparam>
 /// <param name="value1">The first value to get a hash code for.</param>
 /// <param name="value2">The second value to get a hash code for.</param>
 /// <param name="value3">The third value to get a hash code for.</param>
 /// <param name="value4">The fourth value to get a hash code for.</param>
 /// <param name="value5">The fifth value to get a hash code for.</param>
 /// <returns>The created <see cref="HashCode"/>.</returns>
 public static HashCode For <T>(T value1, T value2, T value3, T value4, T value5) => StartHash.And(value1, value2, value3, value4, value5);
Esempio n. 2
0
 /// <summary>
 /// Creates a <see cref="HashCode"/> for the given value.
 /// </summary>
 /// <typeparam name="T">The type of value to create the hash code from.</typeparam>
 /// <param name="value">The value to get a hash code for.</param>
 /// <returns>The created <see cref="HashCode"/>.</returns>
 public static HashCode For <T>(T value) => StartHash.And(value);
Esempio n. 3
0
 /// <summary>
 /// Creates a <see cref="HashCode"/> from the given values.
 /// </summary>
 /// <typeparam name="T">The type of value to create the hash code from.</typeparam>
 /// <param name="value1">The first value to get a hash code for.</param>
 /// <param name="value2">The second value to get a hash code for.</param>
 /// <returns>The created <see cref="HashCode"/>.</returns>
 public static HashCode For <T>(T value1, T value2) => StartHash.And(value1, value2);