Files
2026-08-27 10:56:38 -06:00

26 lines
681 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
namespace Microsoft.CodeAnalysis.Collections.Internal;
internal static class ICollectionCalls
{
public static bool IsSynchronized<TCollection>(ref TCollection collection) where TCollection : ICollection
{
return collection.IsSynchronized;
}
public static void CopyTo<TCollection>(ref TCollection collection, Array array, int index) where TCollection : ICollection
{
collection.CopyTo(array, index);
}
}
internal static class ICollectionCalls<T>
{
public static bool IsReadOnly<TCollection>(ref TCollection collection) where TCollection : ICollection<T>
{
return collection.IsReadOnly;
}
}