Exemplo n.º 1
0
 private Guid GetAssociationAttributeIdFromModuleByFileExtension(IDynamicModule module, String extension)
 {
     return (from ModuleAssociationAttribute attribute in module.GetType().Assembly.GetCustomAttributes(typeof(ModuleAssociationAttribute), true)
             where (attribute as ModuleAssociationAttribute).FileExtension == extension
             select attribute.OID).FirstOrDefault();
 }
Exemplo n.º 2
0
 private IEnumerable<ModuleAssociationAttribute> GetModuleAssociationAttibute(IDynamicModule module)
 {
     var attrubutes = from attribute in module.GetType().Assembly.GetCustomAttributes(typeof(ModuleAssociationAttribute), true)
                      where (attribute as ModuleAssociationAttribute).AssociationType == "ExaminationType"
                      select attribute as ModuleAssociationAttribute;
     return attrubutes;
 }