Click or drag to resize
OptionalValueExtensionsOrDefaultT Method
Extension method that returns value in the specified optional value or the provided default value (the second argument).

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static T OrDefault<T>(
	this OptionalValue<T> opt,
	T defaultValue
)

Parameters

opt
Type: DeedleOptionalValueT

[Missing <param name="opt"/> documentation for "M:Deedle.OptionalValueExtensions.OrDefault``1(Deedle.OptionalValue{``0},``0)"]

defaultValue
Type: T

[Missing <param name="defaultValue"/> documentation for "M:Deedle.OptionalValueExtensions.OrDefault``1(Deedle.OptionalValue{``0},``0)"]

Type Parameters

T

Return Value

Type: T

[Missing <returns> documentation for "M:Deedle.OptionalValueExtensions.OrDefault``1(Deedle.OptionalValue{``0},``0)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OptionalValueT. 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