C# Class eSpares.Levity.ApplicationAssemblyUtility

Mostra file Open project: laazyj/ApplicationAssemblyUtility

Public Methods

Method Description
ApplicationIsDebugBuild ( ) : bool

Returns true if the current application assembly is built in Debug mode.

AssemblyIsDebugBuild ( Assembly assembly ) : bool

Checks for the DebuggableAttribute on the assembly provided to determine whether it has been built in Debug mode.

GetApplicationVersionNumber ( bool double00 = false ) : string

Returns the version number with depth 3 https://msdn.microsoft.com/en-us/library/bff8h2e1%28v=vs.110%29.aspx

GetAssemblyVersionFromType ( Type type, bool double00 = false ) : string

Returns the version number with depth 3 https://msdn.microsoft.com/en-us/library/bff8h2e1%28v=vs.110%29.aspx

Private Methods

Method Description
getApplicationAssembly ( ) : Assembly
getApplicationBinFolder ( ) : string
getVersionString ( System.Version v, bool double00 = false, int depth = 3 ) : string

Method Details

ApplicationIsDebugBuild() public static method

Returns true if the current application assembly is built in Debug mode.
public static ApplicationIsDebugBuild ( ) : bool
return bool

AssemblyIsDebugBuild() public static method

Checks for the DebuggableAttribute on the assembly provided to determine whether it has been built in Debug mode.
public static AssemblyIsDebugBuild ( Assembly assembly ) : bool
assembly System.Reflection.Assembly
return bool

GetApplicationVersionNumber() public static method

Returns the version number with depth 3 https://msdn.microsoft.com/en-us/library/bff8h2e1%28v=vs.110%29.aspx
public static GetApplicationVersionNumber ( bool double00 = false ) : string
double00 bool Specify if you want double digits in minor and build fields
return string

GetAssemblyVersionFromType() public static method

Returns the version number with depth 3 https://msdn.microsoft.com/en-us/library/bff8h2e1%28v=vs.110%29.aspx
public static GetAssemblyVersionFromType ( Type type, bool double00 = false ) : string
type System.Type
double00 bool Specify if you want double digits in minor and build fields
return string