DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ReflectionService

    Provides reflection-related functionality.

    Inheritance
    object
    ReflectionService
    Implements
    IReflectionService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 AssemblyName|Namespace.ClassName.

    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 className is null.

    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 AssemblyName|Namespace.ClassName.

    Returns
    Type Description
    string

    The class name without the assembly prefix.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when className is null.

    Implements

    IReflectionService
    In this article
    Back to top Generated by DocFX