C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetMyMethodName() публичный статический Метод

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. ///
Результат string

GetMySourceFileName() публичный статический Метод

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. ///
Результат string

GetMySourceLineNumber() публичный статический Метод

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. ///
Результат int