Table of Contents

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

string

LineNumber

Line number in the source file at which the method is called.

public readonly int LineNumber

Field Value

int

MemberName

Method or property name of the caller. See Member Names later in this topic.

public readonly string MemberName

Field Value

string

Methods

Get(string, string, int)

Gets the caller information.

public static CallerInfo Get(string sourceFilePath = "", string memberName = "", int sourceLineNumber = 0)

Parameters

sourceFilePath string

The source file path.

memberName string

Name of the member.

sourceLineNumber int

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