Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeNamespaceCollection.cs / 1305376 / CodeNamespaceCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeNamespaceCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeNamespaceCollection() { } ////// Initializes a new instance of ///. /// /// public CodeNamespaceCollection(CodeNamespaceCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeNamespaceCollection(CodeNamespace[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeNamespace this[int index] { get { return ((CodeNamespace)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeNamespace value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeNamespace[] 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(CodeNamespaceCollection 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(CodeNamespace value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeNamespace[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeNamespace value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeNamespace value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeNamespace value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowControlEndpoint.cs
- CompilerState.cs
- SolidBrush.cs
- RelativeSource.cs
- BufferAllocator.cs
- TrackingParameters.cs
- LinqDataSourceEditData.cs
- WindowsGraphics2.cs
- XamlTypeMapper.cs
- PreservationFileWriter.cs
- PrimarySelectionAdorner.cs
- DataSetViewSchema.cs
- SchemaImporterExtension.cs
- Matrix3DStack.cs
- ReadOnlyDictionary.cs
- CompilationUnit.cs
- ProgressBarHighlightConverter.cs
- NumberFunctions.cs
- XmlNamespaceDeclarationsAttribute.cs
- OutputCacheProfileCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- PreProcessInputEventArgs.cs
- ObjectDataSourceMethodEditor.cs
- GridViewUpdateEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- DbProviderFactory.cs
- EventWaitHandleSecurity.cs
- wmiprovider.cs
- EncryptedHeaderXml.cs
- Msec.cs
- BaseDataList.cs
- RTLAwareMessageBox.cs
- EntityModelSchemaGenerator.cs
- BindingFormattingDialog.cs
- Socket.cs
- GlyphTypeface.cs
- NamedObject.cs
- UiaCoreProviderApi.cs
- SafeProcessHandle.cs
- FunctionImportElement.cs
- SubqueryTrackingVisitor.cs
- HttpRawResponse.cs
- GeometryHitTestParameters.cs
- DefaultTextStoreTextComposition.cs
- TemplateBuilder.cs
- WebCategoryAttribute.cs
- AdRotatorDesigner.cs
- ResolveMatchesMessageCD1.cs
- TimeStampChecker.cs
- DataGridViewColumnHeaderCell.cs
- HtmlInputRadioButton.cs
- SoapAttributeAttribute.cs
- RotateTransform.cs
- ReaderWriterLock.cs
- UInt32Storage.cs
- UiaCoreApi.cs
- MultiAsyncResult.cs
- SortAction.cs
- WindowsListViewItem.cs
- StringConcat.cs
- HtmlInputFile.cs
- RowsCopiedEventArgs.cs
- StackSpiller.cs
- NavigationService.cs
- ProviderSettingsCollection.cs
- UpDownEvent.cs
- LexicalChunk.cs
- HtmlMeta.cs
- DataGridViewCellValueEventArgs.cs
- ContextBase.cs
- DisplayNameAttribute.cs
- BehaviorEditorPart.cs
- Task.cs
- XPathNodeIterator.cs
- SqlBooleanizer.cs
- CodeDomDesignerLoader.cs
- Int16AnimationUsingKeyFrames.cs
- EnumerableRowCollectionExtensions.cs
- ViewUtilities.cs
- ExpressionConverter.cs
- ContextMenuStripGroup.cs
- SpnegoTokenProvider.cs
- SymLanguageType.cs
- DataGrid.cs
- WSIdentityFaultException.cs
- WindowsGraphics.cs
- ValidationErrorEventArgs.cs
- XmlWhitespace.cs
- ProfileProvider.cs
- DataGridTableCollection.cs
- SBCSCodePageEncoding.cs
- ArrayElementGridEntry.cs
- WebPartExportVerb.cs
- DataControlField.cs
- ExpandSegmentCollection.cs
- MetaForeignKeyColumn.cs
- InkCanvasAutomationPeer.cs
- ListContractAdapter.cs
- InheritablePropertyChangeInfo.cs
- OpacityConverter.cs