public CovariantReadOnlyCollection(IControlledStateCollection <THigher> covariantSource) { if (covariantSource == null) { throw new ArgumentNullException("covariantSource"); } this.covariantSource = covariantSource; }
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); } }
public abstract IIntermediateCompilerModuleActionResult PrepareSource(IControlledStateCollection <TemporaryFile> files);
public static IControlledStateCollection<TLower> GetCovariant<TLower, THigher>(this IControlledStateCollection<THigher> source) where THigher : TLower { return new CovariantReadOnlyCollection<TLower, THigher>(source); }