IsDomain() public static method

public static IsDomain ( Type type ) : bool
type System.Type
return bool
コード例 #1
0
        public void RegisterDomains(Assembly assembly)
        {
            var newMetaDomains = assembly
                                 .GetTypes()
                                 .Where(type => MetaDomain.IsDomain(type))
                                 .Select(domain => new MetaDomain(domain));

            foreach (MetaDomain newMetaDomain in newMetaDomains)
            {
                RegisterDomain(newMetaDomain);
            }
        }