Class ClassInfo

Helper class to lookup (using Reflection) Type from typename and instantiate object. Implements operations for and represents commerce class information.

Inheritance
System.Object
ClassInfo
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Search
Assembly: Mediachase.Search.dll
Version: 10.8.0
Syntax
[Obsolete("Use Type.GetType(string) and Activator.CreateInstance(Type) where necessary. Do not execute inaccessible constructors via reflection. Will remain at least until November 2016.")]
public class ClassInfo
Remarks

For internal use only. This was originally in SearchManager.cs.

Constructors

ClassInfo(String)

Initializes a new instance of the ClassInfo class.

Declaration
public ClassInfo(string typeName)
Parameters
Type Name Description
System.String typeName

The name of a type to manage.

ClassInfo(Type)

Initializes a new instance of the ClassInfo class.

Declaration
public ClassInfo(Type type)
Parameters
Type Name Description
System.Type type

A type to manage.

Properties

DefaultConstructor

Gets the default constructor for the managed type.

Declaration
public ConstructorInfo DefaultConstructor { get; }
Property Value
Type Description
System.Reflection.ConstructorInfo

Type

Gets the type managed by this object.

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

Methods

CreateInstance()

Creates an instance using the default constructor of the specified type, even if the default constructor is not public.

Declaration
public object CreateInstance()
Returns
Type Description
System.Object

The created instance.