IEnumerableExtension Class

Extension methods that supports working with IEnumerableT objects.

Definition

Namespace: FolkerKinzel.VCards.Extensions
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static class IEnumerableExtension
Inheritance
Object    IEnumerableExtension

Methods

ConcatWithTSource Concatenates two sequences of VCardProperty objects. (Most VCardProperty ojects implement IEnumerable<VCardPoperty> and are themselves such a sequence.)
ContainsGroupTSource Indicates whether values contains an item that has the specified Group identifier.
Dereference Replaces the RelationProperty instances that refer external vCards with their ContactID values by RelationProperty instances that contain these VCard instances directly, provided that vCards contains these VCard instances.
FirstOrNullTSource(IEnumerableTSource, Boolean) Gets the first VCardProperty from a collection of VCardProperty objects. The method takes the Index property into account and allows to specify whether or not to ignore empty items.
FirstOrNullTSource(IEnumerableTSource, FuncTSource, Boolean, Boolean) Gets the first VCardProperty from a collection of VCardProperty objects and allows filtering of the items, and to specify whether or not to ignore empty items.
FirstOrNullHasGroupTSource Gets the first VCardProperty in a collection whose Group identifier matches the specified Group identifier.
GroupByAltIDTSource Groups the VCardProperty objects in values by their AltIDs.
ItemsTSource Yields the VCardProperty instances in values in their current order and allows to specify whether or not empty VCardProperty instances shall be part of the result.
NewAltID Generates a new value for the AltID property that has not yet been used in values.
OrderByIndexTSource Sorts the elements in values ascending by the value of their Index property.
OrderByPrefTSource Sorts the elements in values ascending by the value of their Preference property.
PrefOrNullTSource(IEnumerableTSource, Boolean) Gets the most preferred VCardProperty from a collection of VCardProperty objects and allows to specify whether or not to ignore empty items.
PrefOrNullTSource(IEnumerableTSource, FuncTSource, Boolean, Boolean) Gets the most preferred VCardProperty from a collection of VCardProperty objects and allows additional filtering of the items, and to specify whether or not to ignore empty items.
Reference Returns a collection of VCard objects containing both the VCard objects passed as a collection as well as those which had been embedded in their Relations property. The previously embedded VCard objects are now referenced by RelationProperty objects that are initialized with the value of the ContactID property of these previously embedded VCards.
RemoveTSource(IEnumerableTSource, TSource) Removes each occurrence of value from values.
RemoveTSource(IEnumerableTSource, FuncTSource, Boolean) Removes each item that matches the specified predicate from values.
SaveVcfSaves a collection of VCard objects in a common VCF file.
SerializeVcfSerializes a collection of VCard objects into a Stream using the VCF format.
SetAltIDTSource Sets the AltIDs of the items in a VCardProperty collection to the specified value.
SetIndexesTSource Sets the Index properties of the items in a VCardProperty collection ascending depending on their position in that collection and allows to specify whether to skip empty items in that process.
SetPreferencesTSource Sets the Preference properties of the items in a VCardProperty collection depending on their position in that collection and allows to specify whether to skip empty items in that process. (The first item gets the highest preference 1.)
ToVcfStringSerializes vCards as a String, which represents the content of a VCF file.
UnsetIndexesTSource Resets the Index properties of the items in a VCardProperty collection to null.
UnsetPreferencesTSource Resets the Preference properties of the items in a VCardProperty collection to the lowest value (100).

See Also