// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; namespace E { public class MyFormatTemplate { } public class MyFormatter { public void Init(MyFormatTemplate tpl, T1 p1) { } } public class MyExceptionFormatter : MyFormatter { public void Init(MyFormatTemplate tpl, Exception ex) { base.Init(tpl, ex); } } public class Program { public static void Main(string[] args) { MyFormatter mfmt = new MyFormatter(); mfmt.Init(null, null); MyExceptionFormatter mexfmt = new MyExceptionFormatter(); mexfmt.Init(null, null); } } }