Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class StackTraceHelper

    LUCENENET specific class to normalize stack trace behavior between different .NET Framework and .NET Standard 1.x, which did not support the StackTrace class.

    Inheritance
    System.Object
    StackTraceHelper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class StackTraceHelper

    Methods

    | Improve this Doc View Source

    DoesStackTraceContainMethod(String)

    Matches the StackTrace for a method name.

    IMPORTANT: To make the tests pass in release mode, the method(s) named here must be decorated with [MethodImpl(MethodImplOptions.NoInlining)].

    Declaration
    public static bool DoesStackTraceContainMethod(string methodName)
    Parameters
    Type Name Description
    System.String methodName
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    DoesStackTraceContainMethod(String, String)

    Matches the StackTrace for a particular class (not fully-qualified) and method name.

    IMPORTANT: To make the tests pass in release mode, the method(s) named here must be decorated with [MethodImpl(MethodImplOptions.NoInlining)].

    Declaration
    public static bool DoesStackTraceContainMethod(string className, string methodName)
    Parameters
    Type Name Description
    System.String className
    System.String methodName
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.