new Customer().DoBusinessLogicAndShowResultFormsUsingFormManager(delegate(){FormManager.FormCreator<>});I'm not sure if you need the type as well, so you might need to do it like this;
new Customer().DoBusinessLogicAndShowResultFormsUsingFormManager(delegate(){FormManager.FormCreator<TEntity>});~~Bonnie
>////// This code is in Entry, Winforms UI assembly and has references to >business assembly > >using System.Windows.Forms; >public delegate void ActivateEntityForm<TEntity>(); > >class test >{ > static void Main() > { > //Invalid expression term '>' > new >Customer().DoBusinessLogicAndShowResultFormsUsingFormManager(FormManager.FormCreator<>); > } >} > > >public static class FormManager >{ > public static void FormCreator<TEntity>() > { > Form f = new Form(); > f.Text = typeof(TEntity).Name; > f.Show(); > } >} > >/// Code below resides in business assembly and should not have references >to assembly above > >class Customer >{ > public void >DoBusinessLogicAndShowResultFormsUsingFormManager<TChildEntity>( > ActivateEntityForm<TChildEntity> formCreator) > { > //The variable 'x' cannot be used with type arguments > formCreator<Childentity1>(); > formCreator<Childentity2>(); > } > >} > >class Childentity1 { } >class Childentity2 { } >