Class ReflectionService
Provides reflection-related functionality.
Implements
Inherited Members
Namespace: DataWeb.Reflection
Assembly: DataWeb.Core.dll
Syntax
public class ReflectionService : IReflectionService
Remarks
Initializes a new instance of the ReflectionService class.
Constructors
ReflectionService()
Provides reflection-related functionality.
Declaration
public ReflectionService()
Remarks
Initializes a new instance of the ReflectionService class.
Methods
GetAssembly(string)
Gets the assembly for the specified class.
Declaration
public Assembly GetAssembly(string className)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className | The class name, optionally prefixed with the assembly name in the format
|
Returns
| Type | Description |
|---|---|
| Assembly | The Assembly matching the specified assembly name, or the entry assembly if no assembly prefix is provided. Returns null if the assembly is not loaded. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
GetClassName(string)
Gets the class name without the assembly information.
Declaration
public string GetClassName(string className)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className | The class name, optionally prefixed with the assembly name in the format
|
Returns
| Type | Description |
|---|---|
| string | The class name without the assembly prefix. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |