Class CallerInfo
- Namespace
- Stride.Core.Diagnostics
- Assembly
- Stride.Core.dll
A class to store Caller Information attributes.
public sealed class CallerInfo
- Inheritance
-
CallerInfo
Fields
FilePath
Full path of the source file that contains the caller. This is the file path at compile time.
public readonly string FilePath
Field Value
LineNumber
Line number in the source file at which the method is called.
public readonly int LineNumber
Field Value
MemberName
Method or property name of the caller. See Member Names later in this topic.
public readonly string MemberName
Field Value
Methods
Get(string, string, int)
Gets the caller information.
public static CallerInfo Get(string sourceFilePath = "", string memberName = "", int sourceLineNumber = 0)
Parameters
sourceFilePath
stringThe source file path.
memberName
stringName of the member.
sourceLineNumber
intThe source line number.
Returns
- CallerInfo
A caller information.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.