// 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; using EE; namespace E { public class Person { public string Name { get; set; } } public interface IHasResponsible { Person Responsible { get; set; } } public class ApplicationLogic : IHasResponsible { public void DoSomethings() { Responsible = new Person { Name="Arne" }; Foo foo = new Foo(); foo.A(); foo.B(); Bar bar = new Bar(); bar.C(); bar.D(); } public Person Responsible { get; set; } } public class Program { public static void Main(string[] args) { ApplicationLogic app = new ApplicationLogic(); app.DoSomethings(); } } }