Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CallerInfo Class

    Namespace: Stride.Core.Diagnostics
    Assembly: 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()
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation