/// <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(); } }
/// <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; } }
/// <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); } }
/// <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(); } }