public static void RaiseEvent(normalclass nc, normalstruct ns) { FancyEventArgs e = new FancyEventArgs() { normclass = nc, normstruct = ns }; BasicEvent(null, e); }
static void Main(string[] args) { c = new normalclass() { classArg = 1 }; s = new normalstruct() { structArg = 1 }; EventVarPasser.BasicEvent += new EventHandler <FancyEventArgs>(EventVarPasser_BasicEvent); EventVarPasser.RaiseEvent(c, s); }