Show / Hide Table of Contents

Class 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.

Inheritance
System.Object
ClassAndMethodDiagnosticInfo
Namespace: WizardWrx
Assembly: WizardWrx.DiagnosticInfo.dll
Syntax
public static class ClassAndMethodDiagnosticInfo : object

Methods

| Improve this Doc View Source

GetMyMethodName(String)

Get the unqualified name of the calling method.

Declaration
public static string GetMyMethodName(string pstrMemberName = null)
Parameters
Type Name Description
System.String pstrMemberName

This parameter is configured as optional, and is set by the compiler to the unqualified name of the method that called it.

Returns
Type Description
System.String

The return value is the unqualified compile-time name of the method that called it

| Improve this Doc View Source

GetMySourceFileName(String)

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

Declaration
public static string GetMySourceFileName(string pstrCallerFilePath = null)
Parameters
Type Name Description
System.String pstrCallerFilePath

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.

Returns
Type Description
System.String

The return value is the absolute (fully qualified) name of the file, indicated by pstrCallerFilePath, in which the call originated.

| Improve this Doc View Source

GetMySourceLineNumber(Int32)

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

Declaration
public static int GetMySourceLineNumber(int pintCallerLineNumber = null)
Parameters
Type Name Description
System.Int32 pintCallerLineNumber

This parameter is configured as optional, and is set by the compiler to the line number in the source file where the call originated.

Returns
Type Description
System.Int32

The return value is the line number indicated by integer pintCallerLineNumber where the call arose.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX