public int BClassWithAReponseRefToCallAMethod() { var b = new BClass <GenericClassA>(); var gen = new GenericClassA(); b.SetReponse(gen); RefMethod(ref b); var aMoop = b.boop(); return(aMoop); }
public int AClassWithAReponseRefToCallAMethod() { var a = new AClass <GenericClassA>(); var gen = new GenericClassA(); //data would normally be populated elsewhere but for testing and example is done here a.SetReponse(gen); RefMethod(ref a); var aMoop = a.boop(); return(aMoop); }