コード例 #1
0
 public ManagedExecutionMode GetExecutionMode (ManagedExecution managed) {
     switch (managed) {
         case ManagedExecution.Default:
             return null;
         case ManagedExecution.Auto:
             return Auto;
         case ManagedExecution.Strict:
             if (Strict != null)
                 return Strict;
             return Auto;
         default:
             throw new NotImplementedException();
     }
 }
コード例 #2
0
        public ManagedExecutionMode GetExecutionMode(ManagedExecution managed)
        {
            switch (managed)
            {
            case ManagedExecution.Default:
                return(null);

            case ManagedExecution.Auto:
                return(Auto);

            case ManagedExecution.Strict:
                if (Strict != null)
                {
                    return(Strict);
                }
                return(Auto);

            default:
                throw new NotImplementedException();
            }
        }