private static TypeReference HandleGenericType(TypeReference tref) { var form = GenericInstanceFormFactory.GetForm(tref); if (form != null && form.ShowDialog() == DialogResult.OK) { return((TypeReference)form.GenericInstance); } return(tref); }
private TypeReference HandleGenericType(TypeReference tref) { var form = GenericInstanceFormFactory.GetForm(tref, Context); if (form != null && form.ShowDialog() == DialogResult.OK) { var instance = (TypeReference)form.GenericInstance; if (instance != null) { return(instance); } } return(tref); }