|
|
Custom EventArgs Snippet
File Details
| Downloads: |
622 |
File Size: |
1.5kB |
| Posted By: |
Dave Sexton |
Views: |
2139 |
| Date Added: |
Mon, Mar 19 2007 |
|
My snippets are provided "as is", with no warranty of any kind, either express or implied. Use at your own risk.
Creates the definition for a class that inherits from EventArgs.
Shortcut: eventargs
For more information on my C# Code Snippets see my blog entry: Custom C# Code Snippets. All of my snippets may be downloaded at once here.
Usage
This snippet is intended to be used as expansion only.
Example Output
The following code illustrates this snippet's output: /// <summary>
/// Provides arguments for an event.
/// </summary>
[Serializable]
public class CustomEventArgs : EventArgs
{
public new static readonly CustomEventArgs Empty = new CustomEventArgs();
#region Public Properties
#endregion
#region Private / Protected
#endregion
#region Constructors
/// <summary>
/// Constructs a new instance of the <see cref="CustomEventArgs" /> class.
/// </summary>
public CustomEventArgs(|) < {text cursor goes here}
{
}
#endregion
}
|
|
|