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
- DbProviderSpecificTypePropertyAttribute.cs
- Accessible.cs
- EntityClientCacheKey.cs
- ExternalException.cs
- TextBoxBase.cs
- CallbackValidatorAttribute.cs
- FieldAccessException.cs
- MD5.cs
- ActionMessageFilter.cs
- RawStylusActions.cs
- EntityContainerEntitySetDefiningQuery.cs
- AuthStoreRoleProvider.cs
- XmlSubtreeReader.cs
- ProxyManager.cs
- CodeMemberMethod.cs
- Opcode.cs
- StackBuilderSink.cs
- Vertex.cs
- Decimal.cs
- PlaceHolder.cs
- DragStartedEventArgs.cs
- QueryAsyncResult.cs
- DynamicFilter.cs
- MediaTimeline.cs
- ACE.cs
- ButtonBaseDesigner.cs
- BrowserDefinitionCollection.cs
- BindingMAnagerBase.cs
- SystemBrushes.cs
- PropertyOrder.cs
- HttpConfigurationContext.cs
- InfoCardRSACryptoProvider.cs
- CollectionMarkupSerializer.cs
- DWriteFactory.cs
- Point3DKeyFrameCollection.cs
- NumberFormatter.cs
- DataBindEngine.cs
- XNameTypeConverter.cs
- DataGridColumnCollectionEditor.cs
- LassoSelectionBehavior.cs
- InheritanceContextChangedEventManager.cs
- CodeCompiler.cs
- ToolStripCollectionEditor.cs
- IntSecurity.cs
- FieldToken.cs
- EventlogProvider.cs
- DataBindingsDialog.cs
- Keyboard.cs
- safesecurityhelperavalon.cs
- AggregateNode.cs
- DeleteIndexBinder.cs
- CharacterBuffer.cs
- Label.cs
- CodeTypeDeclaration.cs
- CheckBoxField.cs
- SafeSecurityHelper.cs
- RouteItem.cs
- TextDocumentView.cs
- DynamicPropertyReader.cs
- ToolboxItemAttribute.cs
- CodeIndexerExpression.cs
- SubclassTypeValidator.cs
- BoundsDrawingContextWalker.cs
- UrlMappingCollection.cs
- HandlerFactoryCache.cs
- WorkflowDesignerMessageFilter.cs
- Encoding.cs
- X509Utils.cs
- IOException.cs
- SHA256CryptoServiceProvider.cs
- MetadataArtifactLoaderComposite.cs
- MetadataResolver.cs
- UserControlAutomationPeer.cs
- MessageSecurityOverHttpElement.cs
- SqlProviderManifest.cs
- PasswordRecoveryDesigner.cs
- MetadataCache.cs
- SystemIcons.cs
- InvalidDocumentContentsException.cs
- SQLInt16.cs
- documentsequencetextpointer.cs
- Control.cs
- FormViewDeleteEventArgs.cs
- _HTTPDateParse.cs
- OdbcConnectionStringbuilder.cs
- CodeDOMUtility.cs
- Emitter.cs
- EntityDataSourceQueryBuilder.cs
- ToolStripOverflowButton.cs
- PrintPreviewDialog.cs
- DataRowChangeEvent.cs
- RC2.cs
- GroupStyle.cs
- UniqueTransportManagerRegistration.cs
- MenuBindingsEditor.cs
- DbException.cs
- DeobfuscatingStream.cs
- MainMenu.cs
- ZoneButton.cs
- IsolationInterop.cs