C# 클래스 HandCoded.Framework.Application

The Application class provides a basic application framework. Derived classes extend its functionality and specialise it to a particular task.
상속: Process
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
GetAllAssemblies ( ) : List

Returns a list of all the assemblies that are referenced by the executing application.

GetType ( string name ) : Type

Searches all of the assemblies that comprise the current application to locate a Type instance for the indicated type name.

PathTo ( string where ) : string

Derives the path to the indicated location relative to the applications data directory.

Run ( string arguments ) : void

Causes the Application to process it's command line arguments and begin the execution cycle.

ToString ( ) : string

Converts the instance data members to a string representation that can be displayed for debugging purposes.

보호된 메소드들

메소드 설명
Application ( ) : System

Constructs an Application instance and records it.

DescribeArguments ( ) : string

Provides a text description of the arguments expected after the options (if any), for example "file ...". This method should be overridedn in a derived class requiring an non-empty argument list.

StartUp ( ) : void

Provides an Application with a chance to perform any initialisation. This implementation checks for the -help option. Derived classes may extend the functionality.

ToDebug ( ) : string

Converts the instance's member values to string representations and concatenates them all together. This function is used by ToString and my be overwritten in derived classes.

메소드 상세

Application() 보호된 메소드

Constructs an Application instance and records it.
protected Application ( ) : System
리턴 System

DescribeArguments() 보호된 메소드

Provides a text description of the arguments expected after the options (if any), for example "file ...". This method should be overridedn in a derived class requiring an non-empty argument list.
protected DescribeArguments ( ) : string
리턴 string

GetAllAssemblies() 공개 정적인 메소드

Returns a list of all the assemblies that are referenced by the executing application.
public static GetAllAssemblies ( ) : List
리턴 List

GetType() 공개 정적인 메소드

Searches all of the assemblies that comprise the current application to locate a Type instance for the indicated type name.
public static GetType ( string name ) : Type
name string The qualified name of the required type.
리턴 System.Type

PathTo() 공개 정적인 메소드

Derives the path to the indicated location relative to the applications data directory.
public static PathTo ( string where ) : string
where string The target location.
리턴 string

Run() 공개 메소드

Causes the Application to process it's command line arguments and begin the execution cycle.
public Run ( string arguments ) : void
arguments string The array of command line arguments.
리턴 void

StartUp() 보호된 메소드

Provides an Application with a chance to perform any initialisation. This implementation checks for the -help option. Derived classes may extend the functionality.
protected StartUp ( ) : void
리턴 void

ToDebug() 보호된 메소드

Converts the instance's member values to string representations and concatenates them all together. This function is used by ToString and my be overwritten in derived classes.
protected ToDebug ( ) : string
리턴 string

ToString() 공개 메소드

Converts the instance data members to a string representation that can be displayed for debugging purposes.
public ToString ( ) : string
리턴 string