Exemple #1
0
 public CovariantReadOnlyCollection(IControlledStateCollection <THigher> covariantSource)
 {
     if (covariantSource == null)
     {
         throw new ArgumentNullException("covariantSource");
     }
     this.covariantSource = covariantSource;
 }
Exemple #2
0
 internal void ProcessErrorArray(IIntermediateCompilerError[] errors)
 {
     if (errors != null)
     {
         List <IIntermediateCompilerError> warningsCopy = new List <IIntermediateCompilerError>();
         List <IIntermediateCompilerError> errorsCopy   = new List <IIntermediateCompilerError>();
         foreach (IIntermediateCompilerError error in errors)
         {
             if (error.IsWarning)
             {
                 warningsCopy.Add(error);
             }
             else
             {
                 errorsCopy.Add(error);
             }
         }
         this.errors   = new ReadOnlyCollection <IIntermediateCompilerError>(errorsCopy);
         this.warnings = new ReadOnlyCollection <IIntermediateCompilerError>(warningsCopy);
     }
 }
Exemple #3
0
 public abstract IIntermediateCompilerModuleActionResult PrepareSource(IControlledStateCollection <TemporaryFile> files);
Exemple #4
0
 public static IControlledStateCollection<TLower> GetCovariant<TLower, THigher>(this IControlledStateCollection<THigher> source)
     where THigher :
         TLower
 {
     return new CovariantReadOnlyCollection<TLower, THigher>(source);
 }