Table of Contents

Class ExtensionMethodsMisc

Namespace
NDepend.Helpers
Assembly
NDepend.API.dll

Presents miscellaneous helpers extension methods.

public static class ExtensionMethodsMisc
Inheritance
ExtensionMethodsMisc
Inherited Members

Methods (6)

EqualsAny<T>(T, T, T)

Returns true if thisitem equals item1 or item2.

public static bool EqualsAny<T>(this T item, T item1, T item2) where T : struct

Parameters

item T

this items.

item1 T

First item to compare to.

item2 T

Second item to compare to.

Returns

bool

Type Parameters

T

The generic parameter value type of items.

EqualsAny<T>(T, T, T, T)

Returns true if thisitem equals item1, item2 or item3.

public static bool EqualsAny<T>(this T item, T item1, T item2, T item3) where T : struct

Parameters

item T

this items.

item1 T

First item to compare to.

item2 T

Second item to compare to.

item3 T

Third item to compare to.

Returns

bool

Type Parameters

T

The generic parameter value type of items.

EqualsAny<T>(T, T, T, T, T)

Returns true if thisitem equals item1, item2, item3 or item4.

public static bool EqualsAny<T>(this T item, T item1, T item2, T item3, T item4) where T : struct

Parameters

item T

this items.

item1 T

First item to compare to.

item2 T

Second item to compare to.

item3 T

Third item to compare to.

item4 T

Fourth item to compare to.

Returns

bool

Type Parameters

T

The generic parameter value type of items.

EqualsAny<T>(T, params T[])

Returns true if thisitem equals any item in items.

public static bool EqualsAny<T>(this T item, params T[] items) where T : struct

Parameters

item T

this items.

items T[]

An array of items.

Returns

bool

Type Parameters

T

The generic parameter value type of items.

GetImage<T>(TrendIcon)

Return the image corresponding to the trend icon value.

public static T GetImage<T>(this TrendIcon trendIcon) where T : class

Parameters

trendIcon TrendIcon

The trend icon value

Returns

T

Type Parameters

T

ToNullableDouble(object)

If obj is a numeric primitive type, returns its value converted as double. else returns null.

public static double? ToNullableDouble(this object obj)

Parameters

obj object

The object

Returns

double?