Click or drag to resize

DefaultValueInverter Class

Class that inverts a value. Supports inversion of Byte, Int32, Double, Decimal, Single, Boolean and Visibility.

This class can be used with the InvertExtension.

Inheritance Hierarchy
SystemObject
  BionicCode.Utilities.Net.Core.WpfDefaultValueInverter

Namespace:  BionicCode.Utilities.Net.Core.Wpf
Assembly:  BionicCode.Utilities.Net.Core.Wpf (in BionicCode.Utilities.Net.Core.Wpf.dll) Version: 1.0.1
Syntax
public class DefaultValueInverter : IValueInverter

The DefaultValueInverter type exposes the following members.

Constructors
  NameDescription
Public methodDefaultValueInverter
Initializes a new instance of the DefaultValueInverter class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvertValue
Throws an exception if operation has failed.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryInvertValue
Trys to invert a value. Won't throw an exception if operation fails.
Top
Extension Methods
  NameDescription
Public Extension MethodToDictionary (Defined by HelperExtensions.)
Top
Remarks
The DefaultValueInverter will check if the value is of type string. The string representation is then converted to the native type, inverted and then converted back to string using the provided ToString implementation provided by the native type.
See Also
https://github.com/BionicCode/BionicCode.Net/blob/master/README.md