What an odd request! You can't do it with "normal" events, because you can't hook a handler to them until the instance constructor is finished (there is no instance to hook the handler to until then!)
You can do it, but it needs to be a Static Event:
public class XX
{
public static event EventHandler Created;
public string Text { get; set; }
public XX(string n)
{
Text = n;
if (Created != null)
{
Created(this, null);
}
}
}
You can then hook to it and so forth:
XX.Created += new EventHandler(XX_Created);
...
XX x = new XX("ONE");
XX y = new XX("Two");
It's a strange request though.