Deveel.Data.ServiceUseOptions.CheckImplementationType C# (CSharp) 메소드

CheckImplementationType() 개인적인 메소드

private CheckImplementationType ( Type type ) : void
type System.Type
리턴 void
        private void CheckImplementationType(Type type)
        {
            if (type == null)
                return;

            if (!ServiceType.IsAssignableFrom(type))
                throw new ArgumentException(String.Format("The type '{0}' is not assignable from service type '{1}'.", type, ServiceType));
            if (type.IsAbstract || type.IsInterface)
                throw new ArgumentException(String.Format("The type '{0}' is not instantiable.", type));
        }