SaaS CMS has officially launched! Learn more now.

Class AssemblyUtil

Provides methods to load types from assemblies.

Inheritance
System.Object
AssemblyUtil
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.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 11.8.3
Syntax
public static class AssemblyUtil

Properties

AssembliesPath

Gets the assemblies path.

Declaration
public static string AssembliesPath { get; }
Property Value
Type Description
System.String

Methods

GetTypeString(String, String)

Gets the type string.

Declaration
public static string GetTypeString(string typeFullName, string typeAssemblyName)
Parameters
Type Name Description
System.String typeFullName

Full name of the type.

System.String typeAssemblyName

Name of the type assembly.

Returns
Type Description
System.String

GetTypeString(Type)

Gets the type string.

Declaration
public static string GetTypeString(Type type)
Parameters
Type Name Description
System.Type type

The type.

Returns
Type Description
System.String

GetValueFromString(Type, String)

Gets the value from string.

Declaration
public static object GetValueFromString(Type fieldType, string value)
Parameters
Type Name Description
System.Type fieldType

Type of the field.

System.String value

The value.

Returns
Type Description
System.Object

LoadObject(String)

Loads the object.

Declaration
public static object LoadObject(string type)
Parameters
Type Name Description
System.String type

The type.

Returns
Type Description
System.Object

LoadObject(String, String)

Loads the object.

Declaration
public static object LoadObject(string type, string interfaceName)
Parameters
Type Name Description
System.String type

The type.

System.String interfaceName

Name of the interface.

Returns
Type Description
System.Object

LoadObject(String, Type)

Loads the object.

Declaration
public static object LoadObject(string type, Type interfaceType)
Parameters
Type Name Description
System.String type

The type.

System.Type interfaceType

Type of the interface.

Returns
Type Description
System.Object

LoadObject<T>(String)

Loads the object.

Declaration
public static T LoadObject<T>(string type)
Parameters
Type Name Description
System.String type

The type.

Returns
Type Description
T
Type Parameters
Name Description
T

LoadRecursive(String, Type)

Loads the recursive.

Declaration
public static object[] LoadRecursive(string path, Type interfaceType)
Parameters
Type Name Description
System.String path

The path.

System.Type interfaceType

Type of the interface.

Returns
Type Description
System.Object[]

LoadRecursive(String, Type, Boolean)

Loads the recursive.

Declaration
public static object[] LoadRecursive(string path, Type interfaceType, bool deep)
Parameters
Type Name Description
System.String path

The path.

System.Type interfaceType

Type of the interface.

System.Boolean deep

if set to true to a deep load.

Returns
Type Description
System.Object[]

LoadType(String)

Loads the type.

Declaration
public static Type LoadType(string type)
Parameters
Type Name Description
System.String type

The type.

Returns
Type Description
System.Type