IsFormatterType() public static méthode

public static IsFormatterType ( Type type ) : bool
type System.Type
Résultat bool
Exemple #1
0
        public void RegisterFormatters(Assembly assembly)
        {
            var newMetaFormatters = assembly
                                    .GetTypes()
                                    .Where(type => MetaFormatter.IsFormatterType(type))
                                    .Select(formatterType => new MetaFormatter(formatterType));

            foreach (MetaFormatter newMetaFormatter in newMetaFormatters)
            {
                RegisterFormatter(newMetaFormatter);
            }
        }