/// <summary>
 /// Override set: Notifies the owner of change after calling
 /// base class implementation.
 /// </summary>
 public override object this[_RESATTRIB attrib]
 {
     set
     {
         base[attrib] = value;
         this.NotifyOwnerOfChange();
     }
 }
Example #2
0
 /// <summary>
 /// Allows easy retrieval of strings form of an
 /// <see cref="_RESATTRIB"/>
 /// value.
 /// </summary>
 public string this[_RESATTRIB attrib]
 {
     get
     {
         StringBuilder sb = new StringBuilder(25);
         sb.AppendFormat("{0}", attrib.ToString());
         return(sb.ToString());
     }
 }
 /// <summary>
 /// Override set: Checks protection access through this.Owner.CheckProtection()
 /// and then calls base class implementation.
 /// </summary>
 public override object this[_RESATTRIB attrib]
 {
     set
     {
         if (this.Owner != null)
         {
             this.Owner.CheckRuntimeBindings(new StackTrace());
         }
         base[attrib] = value;
     }
 }
Example #4
0
		/// <summary>
		/// Returns an object, often an
		/// <see cref="IValueType"/>
		/// but not always, for any of the attributes.
		/// The exception to the 
		/// <see cref="IValueType"/>
		/// case is importUri.
		/// </summary>
		public virtual object this[_RESATTRIB attrib]
		{
			get
			{
				return this[T[attrib]];
			}
			set
			{
				this.SetAttribute(T[attrib], value);
			}
		}
Example #5
0
File: Tags.cs Project: Scannow/SWYH
		/// <summary>
		/// Allows easy retrieval of strings form of an
		/// <see cref="_RESATTRIB"/>
		/// value.
		/// </summary>
		public string this[_RESATTRIB attrib]
		{ 
			get 
			{ 
				StringBuilder sb = new StringBuilder(25);
				sb.AppendFormat("{0}", attrib.ToString());
				return sb.ToString();
			}
		}
 /// <summary>
 /// Override set: Checks protection access through this.Owner.CheckProtection()
 /// and then calls base class implementation.
 /// </summary>
 public override object this[_RESATTRIB attrib]
 {
     set
     {
         if (this.Owner != null)
         {
             this.Owner.CheckRuntimeBindings(new StackTrace());
         }
         base[attrib] = value;
     }
 }