System.Linq.Expressions.Expression.DebugInfo C# (CSharp) Method

DebugInfo() public static method

Creates a DebugInfoExpression with the specified span.
public static DebugInfo ( SymbolDocumentInfo document, int startLine, int startColumn, int endLine, int endColumn ) : DebugInfoExpression
document SymbolDocumentInfo The that represents the source file.
startLine int The start line of this . Must be greater than 0.
startColumn int The start column of this . Must be greater than 0.
endLine int The end line of this . Must be greater or equal than the start line.
endColumn int The end column of this . If the end line is the same as the start line, it must be greater or equal than the start column. In any case, must be greater than 0.
return DebugInfoExpression
        public static DebugInfoExpression DebugInfo(SymbolDocumentInfo document, int startLine, int startColumn, int endLine, int endColumn)
        {
            ContractUtils.RequiresNotNull(document, nameof(document));
            if (startLine == 0xfeefee && startColumn == 0 && endLine == 0xfeefee && endColumn == 0)
            {
                return new ClearDebugInfoExpression(document);
            }

            ValidateSpan(startLine, startColumn, endLine, endColumn);
            return new SpanDebugInfoExpression(document, startLine, startColumn, endLine, endColumn);
        }
Expression