.NET
netevent.txt
Associated article: Improving .NET Events
Tags: .NET
Published source code accompanying the article by Richard Grimes in which he examines .NET facilities for writing your own event mechanisms. Also see NETEVENT.ZIP.
Improving .NET Events
by Richard Grimes
Listing One
public class Test
{
// Tell the compiler to generate a delegate class
delegate void OneParam(int x);
void Proc(int x)
{/* code */}
public void InvokeCode()
{
// Create a delegate object and initialize with a ...


