CallerInfo Class
Namespace: Stride.Core.DiagnosticsAssembly: Stride.Core.dll
A class to store Caller Information attributes.
System.Object →
CallerInfo
Derived from CallerInfo:
public sealed class CallerInfo
Name | Description | |
---|---|---|
Fields | ||
FilePath | Full path of the source file that contains the caller. This is the file path at compile time. |
|
LineNumber | Line number in the source file at which the method is called. |
|
MemberName | Method or property name of the caller. See Member Names later in this topic. |
|
Methods | ||
Get(String, String, Int32) | Gets the caller information. |
|
ToString() |
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
Type | Description |
---|---|
System.String |
LineNumber
Line number in the source file at which the method is called.
public readonly int LineNumber
Field Value
Type | Description |
---|---|
System.Int32 |
MemberName
Method or property name of the caller. See Member Names later in this topic.
public readonly string MemberName
Field Value
Type | Description |
---|---|
System.String |
Methods
Get(String, String, Int32)
Gets the caller information.
public static CallerInfo Get(string sourceFilePath = "", string memberName = "", int sourceLineNumber = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceFilePath | The source file path. |
System.String | memberName | Name of the member. |
System.Int32 | sourceLineNumber | The source line number. |
Returns
Type | Description |
---|---|
CallerInfo | A caller information. |
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()