xmlunit-core : Org.XmlUnit.Util Namespace

Linqy Class

Sequence processing constructs not present in System.Linq.

Syntax

public static class Linqy

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Members

See Also: Inherited members from object.

Public Methods

static
FirstOrDefault<T> (this IEnumerable<T>, Func<T, bool>, T) : T
Like Enumerable.FirstOrDefault but with a configurable default value.
static
FirstOrDefaultValue<T> (this IEnumerable<T>, Predicate<T>, T) : T
Like Enumerable.FirstOrDefault but with a configurable default value.
static
Singleton<T> (this T) : IEnumerable<T>
An enumerable containing a single element.

Member Details

FirstOrDefault<T> Generic Method

Like Enumerable.FirstOrDefault but with a configurable default value.

Syntax

public static T FirstOrDefault<T> (this IEnumerable<T> enumerable, Func<T, bool> predicate, T defaultValue)
where T : class

Type Parameters

T
Documentation for this section has not yet been entered.

Parameters

enumerable
Documentation for this section has not yet been entered.
predicate
Documentation for this section has not yet been entered.
defaultValue
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

FirstOrDefaultValue<T> Generic Method

Like Enumerable.FirstOrDefault but with a configurable default value.

Syntax

public static T FirstOrDefaultValue<T> (this IEnumerable<T> enumerable, Predicate<T> predicate, T defaultValue)
where T : struct

Type Parameters

T
Documentation for this section has not yet been entered.

Parameters

enumerable
Documentation for this section has not yet been entered.
predicate
Documentation for this section has not yet been entered.
defaultValue
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Singleton<T> Generic Method

An enumerable containing a single element.

Syntax

public static IEnumerable<T> Singleton<T> (this T t)

Type Parameters

T
Documentation for this section has not yet been entered.

Parameters

t
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241