示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TagContext"/> class.
        /// </summary>
        /// <param name="environment">The environment.</param>
        public TagContext(TagEnvironment environment)
        {
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }

            _environment = environment;
        }
示例#2
0
 internal TagContext()
 {
     _environment = (TagEnvironment)this;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TagItemCollection"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 public TagItemCollection(TagEnvironment environment)
 {
     _environment = environment;
 }
示例#4
0
 TagItemCollection(TagEnvironment environment, string name)
 {
     _environment = environment;
     _name        = name;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TagPropertyCollection"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 internal TagPropertyCollection(TagEnvironment environment)
     : base(StringComparer.OrdinalIgnoreCase)
 {
     _environment = environment;
 }