C# Class Ntreev.Library.Commands.CommandDescriptor

Show file Open project: NtreevSoft/CommandLineParser

Public Methods

Method Description
CreateMethodDescriptors ( Type type ) : MethodDescriptorCollection
CreateStaticMethodDescriptors ( ICustomAttributeProvider provider ) : MethodDescriptorCollection
CreateStaticSwitchDescriptors ( ICustomAttributeProvider provider ) : SwitchDescriptorCollection
GetMethodDescriptor ( object instance, string methodName ) : MethodDescriptor
GetMethodDescriptors ( object instance ) : MethodDescriptorCollection
GetStaticMethodDescriptors ( ICustomAttributeProvider provider ) : MethodDescriptorCollection
GetStaticSwitchDescriptors ( ICustomAttributeProvider provider ) : SwitchDescriptorCollection
GetSwitchDescriptors ( object instance ) : SwitchDescriptorCollection
GetUsageDescriptionProvider ( Type type ) : IUsageDescriptionProvider

Private Methods

Method Description
CreateSwitchDescriptors ( Type type ) : SwitchDescriptorCollection
Filter ( MethodDescriptorCollection descriptors ) : IEnumerable
Filter ( SwitchDescriptorCollection descriptors ) : IEnumerable

Method Details

CreateMethodDescriptors() public static method

public static CreateMethodDescriptors ( Type type ) : MethodDescriptorCollection
type System.Type
return MethodDescriptorCollection

CreateStaticMethodDescriptors() public static method

public static CreateStaticMethodDescriptors ( ICustomAttributeProvider provider ) : MethodDescriptorCollection
provider ICustomAttributeProvider
return MethodDescriptorCollection

CreateStaticSwitchDescriptors() public static method

public static CreateStaticSwitchDescriptors ( ICustomAttributeProvider provider ) : SwitchDescriptorCollection
provider ICustomAttributeProvider
return SwitchDescriptorCollection

GetMethodDescriptor() public static method

public static GetMethodDescriptor ( object instance, string methodName ) : MethodDescriptor
instance object
methodName string
return MethodDescriptor

GetMethodDescriptors() public static method

public static GetMethodDescriptors ( object instance ) : MethodDescriptorCollection
instance object
return MethodDescriptorCollection

GetStaticMethodDescriptors() public static method

public static GetStaticMethodDescriptors ( ICustomAttributeProvider provider ) : MethodDescriptorCollection
provider ICustomAttributeProvider
return MethodDescriptorCollection

GetStaticSwitchDescriptors() public static method

public static GetStaticSwitchDescriptors ( ICustomAttributeProvider provider ) : SwitchDescriptorCollection
provider ICustomAttributeProvider
return SwitchDescriptorCollection

GetSwitchDescriptors() public static method

public static GetSwitchDescriptors ( object instance ) : SwitchDescriptorCollection
instance object
return SwitchDescriptorCollection

GetUsageDescriptionProvider() public static method

public static GetUsageDescriptionProvider ( Type type ) : IUsageDescriptionProvider
type System.Type
return IUsageDescriptionProvider