ExpressiveAnnotations.Analysis.Location.Location C# (CSharp) Method

Location() public method

Initializes a new instance of the Location class.
line <= 0 or column <= 0.
public Location ( int line, int column ) : System
line int The line number.
column int The column number.
return System
        public Location(int line, int column)
        {
            if (line < 1)
                throw new ArgumentOutOfRangeException(nameof(line), "Line number should be positive.");
            if (column < 1)
                throw new ArgumentOutOfRangeException(nameof(column), "Column number should be positive.");

            Line = line;
            Column = column;
        }
Location