Show / Hide Table of Contents

Class ValueConverterAttribute

Implements Value Converter Attribute

Inheritance
System.Object
System.Attribute
ValueConverterAttribute
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Data
Assembly: EmptyKeys.UserInterface.dll
Syntax
[AttributeUsage(AttributeTargets.All | AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Delegate | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.GenericParameter | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Struct, AllowMultiple = true)]
public class ValueConverterAttribute : Attribute

Constructors

ValueConverterAttribute(Type, Type)

Initializes a new instance of the ValueConverterAttribute class.

Declaration
public ValueConverterAttribute(Type converterType, Type toConvertType)
Parameters
Type Name Description
System.Type converterType

Type of the converter.

System.Type toConvertType

Target type to convert.

Properties

ConverterType

Gets the name of the converter type.

Declaration
public Type ConverterType { get; }
Property Value
Type Description
System.Type

The name of the converter type.

ConvertToType

Gets the type to convert to

Declaration
public Type ConvertToType { get; }
Property Value
Type Description
System.Type

The target type

Methods

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Attribute.Equals(System.Object)

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Attribute.GetHashCode()
Back to top Generated by DocFX