Ejemplo n.º 1
0
 public static IClassTypeSource InApplication(IApplication application, string templateId)
 {
     return(new ClassTypeSource((typeInfo) => application.FindTemplateInstance <IHasClassDetails>(
                                    TemplateDependancy.OnModel <IMetaModel>(templateId, (x) => x.Id == typeInfo.Id)
                                    )?.FullTypeName()));
 }
Ejemplo n.º 2
0
 public static IClassTypeSource InProject(IProject project, string templateId)
 {
     return(new ClassTypeSource((typeInfo) => project.FindTemplateInstance <IHasClassDetails>(
                                    TemplateDependancy.OnModel <IMetaModel>(templateId, (x) => x.Id == typeInfo.Id)
                                    )?.FullTypeName()));
 }