Version 3.3.1.2

TypeDrawerPair struct

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public struct TypeDrawerPair : IEquatable<TypeDrawerPair>

Contains information about an editor type which is assigned to draw a certain type in the inspector.

This class uses the TypeBinder instance to bind types to names, and names to types.

Constructors

TypeDrawerPair(Type)
Initializes a new instance of the TypeDrawerPair struct.
public TypeDrawerPair(Type drawnType)
Parameters
System.Type drawnType

The drawn type.

Exceptions
System.ArgumentNullException

drawnType is null

TypeDrawerPair(Type, Type)
Initializes a new instance of the TypeDrawerPair struct.
public TypeDrawerPair(Type drawnType, Type editorType)
Parameters
System.Type drawnType

The drawn type.

System.Type editorType

The editor type.

Exceptions
System.ArgumentNullException

drawnType is null

Fields

Default
A default, empty TypeDrawerPair value.
public static readonly TypeDrawerPair Default
DrawnTypeName
The name of the type to be drawn.
public string DrawnTypeName
EditorTypeName
The name of the editor type.
public string EditorTypeName

Methods

Equals(TypeDrawerPair)
Determines whether the specified TypeDrawerPair is equal to this instance.
public bool Equals(TypeDrawerPair other)
Parameters
TypeDrawerPair other

The TypeDrawerPair to compare with this instance.

Returns
System.Boolean

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

Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object obj)
Parameters
System.Object obj

The System.Object to compare with this instance.

Returns
System.Boolean

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

GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
System.Int32

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

Operators

Equality(TypeDrawerPair, TypeDrawerPair)
Implements the operator ==.
public static bool operator ==(TypeDrawerPair x, TypeDrawerPair y)
Parameters
TypeDrawerPair x

The x.

TypeDrawerPair y

The y.

Returns
System.Boolean

The result of the operator.

Inequality(TypeDrawerPair, TypeDrawerPair)
Implements the operator !=.
public static bool operator !=(TypeDrawerPair x, TypeDrawerPair y)
Parameters
TypeDrawerPair x

The x.

TypeDrawerPair y

The y.

Returns
System.Boolean

The result of the operator.