Interface IValueInverter
Provide an implementation to invert an object or objects.
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Common.dll
Syntax
public interface IValueInverter
Methods
| Improve this Doc View SourceInvertValue(Object)
Throws an exception if operation has failed.
Declaration
object InvertValue(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | value |
Returns
| Type | Description |
|---|---|
| Object | The inverted value. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException |
TryInvertValue(Object, out Object)
Trys to invert a value. Won't throw an exception if operation fails.
Declaration
bool TryInvertValue(object value, out object invertedValue)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | value | |
| Object | invertedValue |
Returns
| Type | Description |
|---|---|
| Boolean |
|