IEnumerableExtensionRemoveTSource(IEnumerableTSource, TSource) Method

Removes each occurrence of value 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,
	TSource value
)
where TSource : VCardProperty

Parameters

values  IEnumerableTSource
The IEnumerableT of VCardProperty objects to edit. The collection may be null, empty, or may contain null references.
value  TSource
The VCardProperty to remove or null.

Type Parameters

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

Return Value

IEnumerableTSource
values without occurrences of value and without null references. 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).

See Also