[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanReplaceRange

CanReplaceRange Method

CanReplaceRange<T>(IDataCollection<T>, int, IEnumerable<T>)

Determines whether the items at the specified index can be replaced in the collection.

Declaration
[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 CanReplaceRange<T>(this IDataCollection<T> dataCollection, int startingIndex, 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 CanReplaceRange(Of T As Class)(dataCollection As IDataCollection(Of T), startingIndex As Integer, items As IEnumerable(Of T)) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int startingIndex

The index of the item that would be replaced.

IEnumerable<T> items

The items that would be replaced.

Returns
Type Description
bool
Type Parameters
Name Description
T