Click or drag to resize
TryValueT Class
Represents a value or an exception. This type is used by functions such as `Series.tryMap` and `Frame.tryMap` to capture the result of a lambda function, which may be either a value or an exception. The type is a discriminated union, so it can be processed using F# pattern matching, or using `Value`, `HasValue` and `Exception` properties [category:Primitive types and values]
Inheritance Hierarchy

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
[SerializableAttribute]
public abstract class TryValue<T> : IEquatable<TryValue<T>>, 
	IStructuralEquatable

Type Parameters

T

The TryValueT type exposes the following members.

Properties
  NameDescription
Public propertyException
Returns the exception captured by this value. When `HasValue = true`, accessing the property throws `InvalidOperationException`.
Public propertyHasValue
Returns `true` when the `TryValue<T>` object represents a successfully calculated value
Public propertyIsError
Public propertyIsSuccess
Public propertyTag
Public propertyValue
Returns the value of `TryValue<T>` when the value is present; otherwise, throws an exception that was captured
Top
Methods
See Also