Class ReflectionHelper
Inheritance
System.Object
ReflectionHelper
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.Web.Console.Common
Assembly: Mediachase.WebConsoleLib.dll
Version: 10.8.0Syntax
public class ReflectionHelper
Constructors
ReflectionHelper()
Declaration
public ReflectionHelper()
Fields
TypeList
Declaration
protected static List<Type> TypeList
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Type> |
Properties
p_TypeList
Declaration
[Obsolete("This property is obsolete, use strongly typed List<Type> TypeList instead. Will remain at least until November 2016.", false)]
protected static ArrayList p_TypeList { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ArrayList |
Methods
BindProperty(Object, String, Object)
This property will bind property specified to the object passed. For property names the expression with "-" seperator can be used similar to how asp.net control properties can be specified.
For example Look-ImageUrl will correspond to the Property ImageUrl for Look object.
Declaration
public static void BindProperty(object source, string propName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | |
System.String | propName | |
System.Object | value |
GetClassesBasedOnTypeInSiteDir(Type)
Searches for interfaces in the SitePhysicalPath location
Declaration
public static string[] GetClassesBasedOnTypeInSiteDir(Type assemblyType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | assemblyType | Type of the assembly. |
Returns
Type | Description |
---|---|
System.String[] |
GetClassesBasedOnTypeInSiteDir(Type, String)
Finds all classes that are based on certain type in site home directory
Declaration
public static string[] GetClassesBasedOnTypeInSiteDir(Type assemblyType, string path)
Parameters
Type | Name | Description |
---|---|---|
System.Type | assemblyType | Type of the assembly. |
System.String | path | The path. |
Returns
Type | Description |
---|---|
System.String[] |
GetInheritedClasses(Type)
Gets the classes that are inherited from the specified class.
Declaration
public static Type[] GetInheritedClasses(Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | baseType | The base class. |
Returns
Type | Description |
---|---|
System.Type[] |
GetSubclasses(String)
Gets the subclasses.
Declaration
public static string[] GetSubclasses(string baseClass)
Parameters
Type | Name | Description |
---|---|---|
System.String | baseClass | The base class. |
Returns
Type | Description |
---|---|
System.String[] |