using System; namespace Robust.Shared.Utility; /// /// Utility functions for working with . /// public static class HashCodeHelpers { /// /// Add the contents of an array to a . /// public static void AddArray(ref this HashCode hc, T[]? array) { if (array == null) { hc.Add(0); return; } hc.Add(array.Length); foreach (var item in array) { hc.Add(item); } } }