Backup/Wilco.SyntaxHighlighting/Web/TokenCollection.cs

(完整代码) 808B

using System;
using System.Collections;

namespace Wilco.Web.SyntaxHighlighting
{
	/// <summary>
	/// Represents a collection of tokens.
	/// </summary>
	public class TokenCollection : CollectionBase
	{
		/// <summary>
		/// Initializes a new instance of a <see cref="Wilco.Web.SyntaxHighlighting.TokenCollection"/> class.
		/// </summary>
		public TokenCollection()
		{
			//
		}

		/// <summary>
		/// Gets the token at the specified index.
		/// </summary>
		public Token this[int index]
		{
			get
			{
				return (Token)this.List[index];
			}
		}

		/// <summary>
		/// Adds an item.
		/// </summary>
		/// <param name="t">The item to add.</param>
		/// <returns>Index of the added item.</returns>
		public int Add(Token t)
		{
			return this.List.Add(t);
		}
	}
}

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

AI 解读

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

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