Click or drag to resize

TypeReference Structure

Represents a reference to a Type that will be serialized to XML using the type name.

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public struct TypeReference : IXmlSerializable, 
	IEquatable<TypeReference>

The TypeReference type exposes the following members.

Constructors
  NameDescription
Public methodTypeReference(String)
Initializes a new instance of the TypeReference structure using the specified type name.
Public methodTypeReference(Type)
Initializes a new instance of the TypeReference structure using the specified type.
Top
Properties
  NameDescription
Public propertyReferencedType
Gets or sets the type that this TypeReference references.
Public propertyStatic memberResolveTypes
Gets or sets a value indicating whether TypeReference instances should resolve the type specified by TypeName if ReferencedType wasn't explicitly set.
Public propertyTypeName
Gets or sets the name of the type that this TypeReference references.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current TypeReference.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(TypeReference)
Returns a value indicating whether the this instance is equal to the specified instance.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Converts this instance to a string representation.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified TypeReference object have the same value.
Public operatorStatic member(Type to TypeReference)
Implicitly converts a Type to a TypeReference.
Public operatorStatic memberInequality
Determines whether two specified TypeReference object have different values.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
A TypeReference instance that doesn't reference any type.
Top
See Also