Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
StackTrace.GetFrames should return an array of non-nullable frames (#…
Browse files Browse the repository at this point in the history
…27787)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
  • Loading branch information
jnm2 authored and safern committed Nov 9, 2019
1 parent 531ec92 commit 281801b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Common/src/CoreLib/System/Diagnostics/StackTrace.cs
Expand Up @@ -25,7 +25,7 @@ public partial class StackTrace
/// <summary>
/// Stack frames comprising this stack trace.
/// </summary>
private StackFrame?[]? _stackFrames;
private StackFrame[]? _stackFrames;

/// <summary>
/// Constructs a stack trace from the current location.
Expand Down Expand Up @@ -156,7 +156,7 @@ public StackTrace(StackFrame frame)
/// The nth element of this array is the same as GetFrame(n).
/// The length of the array is the same as FrameCount.
/// </summary>
public virtual StackFrame?[] GetFrames()
public virtual StackFrame[] GetFrames()
{
if (_stackFrames == null || _numOfFrames <= 0)
return Array.Empty<StackFrame>();
Expand Down

0 comments on commit 281801b

Please sign in to comment.