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.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
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).