C# Class Open.Core.Common.ReflectionUtil

Utility functions for working with the Reflection system.
Most reflection utilities are created uing extension-methods. This class is for funtions where you don't already have an instance of Reflection object you want to operate on.
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
GetAssemblyName ( string assemblyName ) : string

Extracts the name part from the given fully-qualified assembly name.

For example:
TestHarness.Silverlight.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
would return:
TestHarness.Silverlight.Test

GetEnumValues ( Type enumType ) : List

Gets the collection of values from the given enum type.

Method Details

GetAssemblyName() public static method

Extracts the name part from the given fully-qualified assembly name.
For example:
TestHarness.Silverlight.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
would return:
TestHarness.Silverlight.Test
public static GetAssemblyName ( string assemblyName ) : string
assemblyName string The full name of the assembly.
return string

GetEnumValues() public static method

Gets the collection of values from the given enum type.
Is thrown if a non-Enum type is passed.
public static GetEnumValues ( Type enumType ) : List
enumType System.Type The type of the enum to examine.
return List