Bosphorus.Library.Dao.Facade.Facade.Loader.FromAssemblyDescriptor.SelectService C# (CSharp) Method

SelectService() private method

private SelectService ( Type repositoryServiceType ) : ServiceDescriptor.ServiceSelector
repositoryServiceType System.Type
return ServiceDescriptor.ServiceSelector
        private ServiceDescriptor.ServiceSelector SelectService(Type repositoryServiceType)
        {
            return delegate(Type type, Type baseType)
            {
                Type[] interfaces = type.GetInterfaces();
                foreach (Type @interface in interfaces)
                {
                    if ([email protected])
                        continue;

                    if ([email protected]().Equals(repositoryServiceType))
                        continue;

                    return new Type[] { @interface };
                }
                return null;
            };
        }