2using System.Collections.Generic;
3using System.Runtime.CompilerServices;
11 public static int GetStableHashCode(
this string text)
16 foreach (
char c
in text)
24 internal static string GetMethodName(
this Delegate func)
27 return func.GetMethodInfo().Name;
29 return func.Method.Name;
35 [MethodImpl(MethodImplOptions.AggressiveInlining)]
36 public static void CopyTo<T>(
this IEnumerable<T> source, List<T> destination)
39 destination.AddRange(source);
42#if !UNITY_2021_OR_NEWER
44 public static bool TryDequeue<T>(
this Queue<T> source, out T element)
48 element = source.Dequeue();