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.
Afficher le fichier Open project: txwizard/WizardWrx_NET_API

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat string

GetMySourceFileName() public static méthode

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. ///
Résultat string

GetMySourceLineNumber() public static méthode

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. ///
Résultat int