Skip to content

Commit

Permalink
Point to DMI.Create from RUC message on StackFrame.GetMethod (#103400)
Browse files Browse the repository at this point in the history
Should help discoverability.
  • Loading branch information
MichalStrehovsky authored Jun 14, 2024
1 parent ae80f73 commit 0dddcc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial class StackFrame
/// <summary>
/// Returns the method the frame is executing
/// </summary>
[RequiresUnreferencedCode("Metadata for the method might be incomplete or removed")]
[RequiresUnreferencedCode("Metadata for the method might be incomplete or removed. Consider using " + nameof(DiagnosticMethodInfo) + "." + nameof(DiagnosticMethodInfo.Create) + " instead")]
public virtual MethodBase? GetMethod()
{
TryInitializeMethodBase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public StackFrame(string? fileName, int lineNumber, int colNumber) { }
public virtual int GetFileLineNumber() { throw null; }
public virtual string? GetFileName() { throw null; }
public virtual int GetILOffset() { throw null; }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Metadata for the method might be incomplete or removed")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Metadata for the method might be incomplete or removed. Consider using DiagnosticMethodInfo.Create instead")]
public virtual System.Reflection.MethodBase? GetMethod() { throw null; }
public virtual int GetNativeOffset() { throw null; }
public override string ToString() { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public StackFrame(string? fileName, int lineNumber, int colNumber)
/// <summary>
/// Returns the method the frame is executing
/// </summary>
[RequiresUnreferencedCode("Metadata for the method might be incomplete or removed")]
[RequiresUnreferencedCode("Metadata for the method might be incomplete or removed. Consider using " + nameof(DiagnosticMethodInfo) + "." + nameof(DiagnosticMethodInfo.Create) + " instead")]
public virtual MethodBase? GetMethod()
{
return _method;
Expand Down

0 comments on commit 0dddcc5

Please sign in to comment.