IEnumerableExtensionRemoveTSource(IEnumerableTSource, FuncTSource, Boolean) Method
Removes each item that matches the specified predicate from
values.
Namespace: FolkerKinzel.VCards.ExtensionsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
public static IEnumerable<TSource> Remove<TSource>(
this IEnumerable<TSource>? values,
Func<TSource, bool> predicate
)
where TSource : VCardProperty
<ExtensionAttribute>
Public Shared Function Remove(Of TSource As VCardProperty) (
values As IEnumerable(Of TSource),
predicate As Func(Of TSource, Boolean)
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
where TSource : VCardProperty
static IEnumerable<TSource>^ Remove(
IEnumerable<TSource>^ values,
Func<TSource, bool>^ predicate
)
[<ExtensionAttribute>]
static member Remove :
values : IEnumerable<'TSource> *
predicate : Func<'TSource, bool> -> IEnumerable<'TSource> when 'TSource : VCardProperty
- values IEnumerableTSource
- The IEnumerableT of VCardProperty
objects to edit. The collection may be null, empty, or may contain null
references.
- predicate FuncTSource, Boolean
- A FuncT, TResult that returns true for
items that are to remove.
- TSource
- Generic type parameter that's constrained to be a class
that's derived from VCardProperty.
IEnumerableTSourcevalues without the items that matches the
predicate. If
values is
null, an empty
collection is returned.In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).