IEnumerableExtensionRemoveTSource(IEnumerableTSource, FuncTSource, Boolean) Method

Removes each item that matches the specified predicate from values.

Definition

Namespace: FolkerKinzel.VCards.Extensions
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static IEnumerable<TSource> Remove<TSource>(
	this IEnumerable<TSource>? values,
	Func<TSource, bool> predicate
)
where TSource : VCardProperty

Parameters

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.

Type Parameters

TSource
Generic type parameter that's constrained to be a class that's derived from VCardProperty.

Return Value

IEnumerableTSource
values without the items that matches the predicate. If values is null, an empty collection is returned.

Usage Note

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).

Exceptions

ArgumentNullExceptionpredicate is null.

See Also