System.Internal.DebugHandleTracker.HandleType.HandleEntry.StackParser.Truncate C# (CSharp) Method

Truncate() public method

public Truncate ( int lines ) : void
lines int
return void
                    public void Truncate(int lines) {
                        string truncatedStack = "";

                        while (lines-- > 0 && startIndex < length) {
                            if (truncatedStack == null) {
                                truncatedStack = GetLine();
                            }
                            else {
                                truncatedStack += ": " + GetLine();
                            }
                            truncatedStack += Environment.NewLine;
                        }

                        releventStack = truncatedStack;
                        startIndex = 0;
                        endIndex = 0;
                        length = releventStack.Length;
                    }
                }