C# 클래스 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.
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
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.

메소드 상세

GetAssemblyName() 공개 정적인 메소드

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.
리턴 string

GetEnumValues() 공개 정적인 메소드

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.
리턴 List