comment.cs

来自「全功能c#编译器」· CS 代码 · 共 57 行

CS
57
字号
using System;
using System.Text;
using System.CodeDom;
using System.Collections;
using System.Drawing;

namespace ICSharpCode.SharpRefactory.Parser
{
	public class Comment
	{
		CommentType   commentType;
		string        comment;
		Point         startPosition;
		
		public CommentType CommentType {
			get {
				return commentType;
			}
			set {
				commentType = value;
			}
		}
		
		public string CommentText {
			get {
				return comment;
			}
			set {
				comment = value;
			}
		}
		
		public Point StartPosition {
			get {
				return startPosition;
			}
			set {
				startPosition = value;
			}
		}
		
		public Comment(CommentType commentType, string comment, Point startPosition)
		{
			this.commentType   = commentType;
			this.comment       = comment;
			this.startPosition = startPosition;
		}
		
		public override string ToString()
		{
			return String.Format("[Comment: CommentType = {0}]",
			                     CommentType);
		}
		
	}
}

⌨️ 快捷键说明

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