/// <summary> /// Raises the <see cref="E:"/> event. /// </summary> /// <param name="e">The <see cref="TextWrittenEventArgs"/> instance containing the event data.</param> protected virtual void OnTextChanged(TextWrittenEventArgs e) { EventHandler <TextWrittenEventArgs> handler = Interlocked.CompareExchange(ref this.textChanged, null, null); if (handler != null) { handler(this, e); } }
/// <summary> /// Raises the <see cref="E:"/> event. /// </summary> /// <param name="e">The <see cref="TextWrittenEventArgs"/> instance containing the event data.</param> protected virtual void OnTextChanged(TextWrittenEventArgs e) { EventHandler<TextWrittenEventArgs> handler = Interlocked.CompareExchange(ref this.textChanged, null, null); if (handler != null) { handler(this, e); } }
private void TestObjectTextChanged(object sender, TextWrittenEventArgs e) { this.eventText += e.Text; }