Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / Compiler / CompilerErrorCollection.cs / 1 / CompilerErrorCollection.cs
// ------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------------- // namespace System.CodeDom.Compiler { using System; using System.Collections; using System.Security.Permissions; ////// [Serializable()] [PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")] public class CompilerErrorCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CompilerErrorCollection() { } ////// Initializes a new instance of ///. /// /// public CompilerErrorCollection(CompilerErrorCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CompilerErrorCollection(CompilerError[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CompilerError this[int index] { get { return ((CompilerError)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CompilerError value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CompilerError[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///Copies the elements of an array to the end of the ///. /// public void AddRange(CompilerErrorCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } ////// Adds the contents of another ///to the end of the collection. /// /// public bool Contains(CompilerError value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CompilerError[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public bool HasErrors { get { if (Count > 0) { foreach (CompilerError e in this) { if (!e.IsWarning) { return true; } } } return false; } } ////// Gets or sets /// a value indicating whether the collection contains errors. /// ////// public bool HasWarnings { get { if (Count > 0) { foreach (CompilerError e in this) { if (e.IsWarning) { return true; } } } return false; } } ////// Gets or sets /// a value indicating whether the collection contains warnings. /// ////// public int IndexOf(CompilerError value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CompilerError value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CompilerError value) { List.Remove(value); } } }Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Mappings.cs
- MultiDataTrigger.cs
- ProviderSettingsCollection.cs
- EncoderFallback.cs
- BulletedList.cs
- InstanceNameConverter.cs
- SoapElementAttribute.cs
- BorderGapMaskConverter.cs
- WebPartsSection.cs
- OleDbCommandBuilder.cs
- RectIndependentAnimationStorage.cs
- TdsParserSafeHandles.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataControlImageButton.cs
- RootAction.cs
- ToolStripComboBox.cs
- Globals.cs
- XsltException.cs
- RadioButton.cs
- AttributeProviderAttribute.cs
- MonitoringDescriptionAttribute.cs
- LinkedResource.cs
- XmlAnyElementAttributes.cs
- IgnoreFlushAndCloseStream.cs
- dsa.cs
- DynamicContractTypeBuilder.cs
- HttpCachePolicy.cs
- SHA1Managed.cs
- InvalidChannelBindingException.cs
- PrintPageEvent.cs
- LinearQuaternionKeyFrame.cs
- XhtmlBasicLinkAdapter.cs
- DispatcherTimer.cs
- GridSplitterAutomationPeer.cs
- EnvelopedPkcs7.cs
- FontFamilyIdentifier.cs
- TreeNodeStyle.cs
- RotateTransform.cs
- ListControl.cs
- EntityDataSourceChangingEventArgs.cs
- RTLAwareMessageBox.cs
- Convert.cs
- XamlInterfaces.cs
- RelatedEnd.cs
- PolicyLevel.cs
- ObjectQuery.cs
- EventHandlers.cs
- StrongNameKeyPair.cs
- AnnouncementClient.cs
- ConfigXmlCDataSection.cs
- NumberFormatInfo.cs
- DateTimeConverter2.cs
- Command.cs
- DesignerGeometryHelper.cs
- TextOptionsInternal.cs
- TextLineResult.cs
- CodeNamespaceImportCollection.cs
- LayoutEvent.cs
- TemplateContentLoader.cs
- ActiveXSite.cs
- BitConverter.cs
- CollectionCodeDomSerializer.cs
- BitmapEffectvisualstate.cs
- ConfigurationValidatorBase.cs
- CaseInsensitiveComparer.cs
- RtfToken.cs
- DesignerAttribute.cs
- DuplexChannelBinder.cs
- DbConnectionOptions.cs
- odbcmetadatafactory.cs
- _SSPIWrapper.cs
- BatchParser.cs
- EntityDataSourceView.cs
- AppDomainAttributes.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- DataTrigger.cs
- Int32Collection.cs
- BridgeDataRecord.cs
- EntitySetBase.cs
- DataFieldConverter.cs
- XmlWrappingWriter.cs
- SecureEnvironment.cs
- DrawingContextDrawingContextWalker.cs
- SqlDataAdapter.cs
- Assembly.cs
- OutputCacheModule.cs
- XmlJsonWriter.cs
- RelatedCurrencyManager.cs
- Vertex.cs
- ExpiredSecurityTokenException.cs
- ListSortDescriptionCollection.cs
- FieldNameLookup.cs
- PieceNameHelper.cs
- DataGridViewSortCompareEventArgs.cs
- TableCellsCollectionEditor.cs
- CodeIdentifiers.cs
- TypeNameConverter.cs
- StrokeCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- PermissionSetEnumerator.cs