Max Samukha Wrote: > You might do it like this: > ... > static if (is(typeof(T.OnClose))) > ... Yes, this is exactly what I was looked for! Thanks, Max! -- serg.