Exemplo n.º 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;
        }
Exemplo n.º 2
0
 internal TagContext()
 {
     _environment = (TagEnvironment)this;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 TagItemCollection(TagEnvironment environment, string name)
 {
     _environment = environment;
     _name        = name;
 }
Exemplo n.º 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;
 }