Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1 / CodeTypeDeclarationCollection.cs
// ------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ////// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeDeclaration this[int index] { get { return ((CodeTypeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeDeclaration 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
- ResourceProviderFactory.cs
- SettingsContext.cs
- NumericExpr.cs
- HandleDictionary.cs
- OutArgumentConverter.cs
- OleDbParameter.cs
- ErrorHandler.cs
- Visual3D.cs
- Object.cs
- SelectionPattern.cs
- ColorAnimationUsingKeyFrames.cs
- Globals.cs
- CacheSection.cs
- XmlAggregates.cs
- XmlDesignerDataSourceView.cs
- RenderData.cs
- ConnectorSelectionGlyph.cs
- HwndSourceParameters.cs
- ItemContainerGenerator.cs
- SessionEndedEventArgs.cs
- LabelEditEvent.cs
- ElementNotAvailableException.cs
- CodeIndexerExpression.cs
- EnvironmentPermission.cs
- FormatVersion.cs
- MetaModel.cs
- HttpClientCertificate.cs
- Image.cs
- SmtpCommands.cs
- Hex.cs
- ECDiffieHellmanPublicKey.cs
- InterleavedZipPartStream.cs
- ObjectAnimationBase.cs
- NCryptSafeHandles.cs
- ResourceAttributes.cs
- UIElement.cs
- DataGridViewToolTip.cs
- BamlBinaryWriter.cs
- ModuleElement.cs
- GraphicsContainer.cs
- MessageVersionConverter.cs
- StringExpressionSet.cs
- ClientUIRequest.cs
- FactoryMaker.cs
- EntityDataSourceConfigureObjectContext.cs
- HttpListenerException.cs
- FixedElement.cs
- BufferModeSettings.cs
- SimpleTextLine.cs
- DesignerLoader.cs
- Subtree.cs
- IisTraceWebEventProvider.cs
- FixUpCollection.cs
- FlagsAttribute.cs
- SizeChangedEventArgs.cs
- PnrpPermission.cs
- CopyAction.cs
- ContextMenuAutomationPeer.cs
- BackgroundFormatInfo.cs
- SecurityException.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- XmlDataSourceView.cs
- XmlHierarchyData.cs
- GenericAuthenticationEventArgs.cs
- SystemIPInterfaceStatistics.cs
- OLEDB_Util.cs
- EasingQuaternionKeyFrame.cs
- ReadOnlyHierarchicalDataSource.cs
- XamlHostingConfiguration.cs
- ReferencedCollectionType.cs
- VisualStyleRenderer.cs
- DropTarget.cs
- PermissionSetTriple.cs
- XmlSchema.cs
- AlignmentXValidation.cs
- UndoManager.cs
- RoutedEventValueSerializer.cs
- XamlWriter.cs
- SolidColorBrush.cs
- XmlSchemaComplexType.cs
- ScriptComponentDescriptor.cs
- WindowsSecurityTokenAuthenticator.cs
- SafeMemoryMappedFileHandle.cs
- DynamicFilter.cs
- EntityDataSourceQueryBuilder.cs
- LayoutEvent.cs
- LinkedList.cs
- GiveFeedbackEventArgs.cs
- codemethodreferenceexpression.cs
- Schema.cs
- SqlDataRecord.cs
- CompiledELinqQueryState.cs
- CompiledXpathExpr.cs
- AggregateNode.cs
- LabelAutomationPeer.cs
- PauseStoryboard.cs
- XmlReturnWriter.cs
- ClientSettings.cs
- HttpConfigurationSystem.cs
- BitmapFrameDecode.cs