using System.Collections.Generic; namespace UnityEditor.ShaderGraph.Serialization { static class SerializationExtensions { public static RefValueEnumerable SelectValue(this List> list) where T : JsonObject => new RefValueEnumerable(list); public static DataValueEnumerable SelectValue(this List> list) where T : JsonObject => new DataValueEnumerable(list); public static void AddRange(this List> list, IEnumerable enumerable) where T : JsonObject { foreach (var jsonObject in enumerable) { list.Add(jsonObject); } } public static void AddRange(this List> list, List enumerable) where T : JsonObject { foreach (var jsonObject in enumerable) { list.Add(jsonObject); } } public static void AddRange(this List list, List> enumerable) where T : JsonObject { foreach (var jsonObject in enumerable) { list.Add(jsonObject); } } } }