'Declaration<ExtensionAttribute()> Public Shared Sub RemoveExisting(Of T)( _ ByVal collection As ICollection(Of T), _ ByVal item As T _ )
'UsageDim collection As ICollection(Of T) Dim item As T ICollectionExtension.RemoveExisting(Of T)(collection, item)
[Extension()] public static void RemoveExisting<T>( ICollection<T> collection, T item )
[Extension()] public: static void RemoveExistinggeneric<typename T> ( ICollection<T^>^ collection, T^ item )
Parameters
- collection
- The collection from which the item will be removed. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value can be
null(Nothingin Visual Basic). - item
- The item to remove from the collection. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- T
- The type of elements in the collection.