position.cs

来自「c#源代码」· CS 代码 · 共 47 行

CS
47
字号
/*
 * Created by SharpDevelop.
 * User: Andrea
 * Date: 01.04.2004
 * Time: 14:56
 * 
 * To change this template use Tools | Options | File Templates.
 */

using SharpDevelop.Internal.Parser;

namespace ICSharpCode.SharpDevelop.Services
{
	/// <summary>
	/// Used in many methods as parameter, to shorten the parameter lists
	/// </summary>
	public class Position
	{
		int line = -1;
		int column = -1;
		ICompilationUnit cu;
		
		public int Line {
			get {
				return line;
			}
		}
		public int Column {
			get {
				return column;
			}
		}
		public ICompilationUnit Cu {
			get {
				return cu;
			}
		}
		
		public Position(ICompilationUnit cu, int line, int column)
		{
			this.line = line;
			this.column = column;
			this.cu = cu;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?