| Overloads | |
|---|---|
| GetValueOrDefault(Func<string,T>) | Gets the value if successful, or gets a value from the specified function. |
| GetValueOrDefault(T) | Gets the value if successful, or returns the specified default value. |
Gets the value if successful, or gets a value from the specified function.
public T GetValueOrDefault(System.Func<string,T> defaultValueFactory);
defaultValueFactory System.Func<System.String,T>
Function to create default value from error message.
T
The success value or the result of the default value factory.
Gets the value if successful, or returns the specified default value.
public T GetValueOrDefault(T defaultValue=default(T));
defaultValue T
The default value to return on failure.
T
The success value or the default value.