C# Class WizardWrx.ClassAndMethodDiagnosticInfo

The static methods in this class expose the internal name, source code file name, and source file line number from which calls to them originated.
Mostrar archivo Open project: txwizard/WizardWrx_NET_API

Public Methods

Method Description
GetMyMethodName ( string pstrMemberName = SpecialStrings.EMPTY_STRING ) : string

Get the unqualified name of the calling method.

GetMySourceFileName ( string pstrCallerFilePath = SpecialStrings.EMPTY_STRING ) : string

Get the absolute (fully qualified) name of the source file in which the calling method is defined.

GetMySourceLineNumber ( int pintCallerLineNumber = MagicNumbers.ZERO ) : int

Get the line number in the source file at which the call arose.

Method Details

GetMyMethodName() public static method

Get the unqualified name of the calling method.
public static GetMyMethodName ( string pstrMemberName = SpecialStrings.EMPTY_STRING ) : string
pstrMemberName string /// This parameter is configured as optional, and is set by the compiler /// to the unqualified name of the method that called it. ///
return string

GetMySourceFileName() public static method

Get the absolute (fully qualified) name of the source file in which the calling method is defined.
public static GetMySourceFileName ( string pstrCallerFilePath = SpecialStrings.EMPTY_STRING ) : string
pstrCallerFilePath string /// This parameter is configured as optional, and is set by the compiler /// to the absolute (fully qualified) name of the source file in which /// the method that called it is defined. ///
return string

GetMySourceLineNumber() public static method

Get the line number in the source file at which the call arose.
public static GetMySourceLineNumber ( int pintCallerLineNumber = MagicNumbers.ZERO ) : int
pintCallerLineNumber int /// This parameter is configured as optional, and is set by the compiler /// to the line number in the source file where the call originated. ///
return int