Backup/Wilco.SyntaxHighlighting/Web/SourceLineItem.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Wilco.Web.SyntaxHighlighting
{
	/// <summary>
	/// Represents a source item.
	/// </summary>
	public class SourceItem : Control, INamingContainer
	{
		private int lineNumber;
		private int totalLines;
		private string sourceLine;

		/// <summary>
		/// Gets the line number.
		/// </summary>
		public int LineNumber
		{
			get
			{
				return this.lineNumber;
			}
		}

		/// <summary>
		/// Gets the total number of lines.
		/// </summary>
		public int TotalLines
		{
			get
			{
				return this.totalLines;
			}
		}

		/// <summary>
		/// Gets the line of source code.
		/// </summary>
		public string SourceLine
		{
			get
			{
				return this.sourceLine;
			}
		}

		/// <summary>
		/// Initializes a new instance of a <see cref="Wilco.Web.SyntaxHighlighting.SourceItem"/> class.
		/// </summary>
		/// <param name="lineNumber">The line number.</param>
		/// <param name="totalLines">The total number of lines.</param>
		/// <param name="sourceLine">The line of source code.</param>
		public SourceItem(int lineNumber, int totalLines, string sourceLine)
		{
			this.lineNumber = lineNumber;
			this.totalLines = totalLines;
			this.sourceLine = sourceLine;
		}
后面还有 2 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。