[]
Determines whether a new range of items can be inserted in the collection at the specified index.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportRangeEditing<>))]
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "The generic type is obtained from analyzing the ISupportRangeEditing<> interface at runtime, therefore the IEnumerable<T> must be present at runtime too because it is used as a parameter in at least one of the method of that interface")]
public static bool CanInsertRange<T>(this IDataCollection<T> dataCollection, int index, IEnumerable<T> items) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportRangeEditing(Of )))>
<UnconditionalSuppressMessage("AOT", "IL3050", Justification:="The generic type is obtained from analyzing the ISupportRangeEditing<> interface at runtime, therefore the IEnumerable<T> must be present at runtime too because it is used as a parameter in at least one of the method of that interface")>
Public Shared Function CanInsertRange(Of T As Class)(dataCollection As IDataCollection(Of T), index As Integer, items As IEnumerable(Of T)) As Boolean
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | index | The index where the items would be inserted. |
| IEnumerable<T> | items | The items to be inserted. |
| Type | Description |
|---|---|
| bool |
| Name | Description |
|---|---|
| T |