Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeNamespaceCollection.cs / 1 / CodeNamespaceCollection.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 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 /// . // 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 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
- TimelineCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SoapProtocolReflector.cs
- OledbConnectionStringbuilder.cs
- Int32AnimationBase.cs
- Int32AnimationBase.cs
- LayoutSettings.cs
- RenderCapability.cs
- OleAutBinder.cs
- FunctionDescription.cs
- SchemaAttDef.cs
- IsolatedStorageException.cs
- HwndHostAutomationPeer.cs
- LogFlushAsyncResult.cs
- SelectionProcessor.cs
- PageBreakRecord.cs
- PenCursorManager.cs
- ParseNumbers.cs
- WorkflowTimerService.cs
- RestHandler.cs
- XmlTypeMapping.cs
- DeclarativeConditionsCollection.cs
- CheckBox.cs
- SerialErrors.cs
- ToolStripScrollButton.cs
- SchemaElementLookUpTable.cs
- ParseNumbers.cs
- _NegoState.cs
- DesignerCategoryAttribute.cs
- BigInt.cs
- EnumerableCollectionView.cs
- FacetValueContainer.cs
- DependencyPropertyAttribute.cs
- LayoutTable.cs
- DecimalAnimationUsingKeyFrames.cs
- MonthChangedEventArgs.cs
- EventLogStatus.cs
- BitmapEncoder.cs
- GridItemPatternIdentifiers.cs
- AssemblyCollection.cs
- NamedPipeProcessProtocolHandler.cs
- TreePrinter.cs
- XPathExpr.cs
- HttpPostedFile.cs
- Comparer.cs
- CheckedListBox.cs
- SoundPlayer.cs
- HeaderCollection.cs
- ExpressionHelper.cs
- DirectionalLight.cs
- MatchAttribute.cs
- TokenBasedSetEnumerator.cs
- SqlClientPermission.cs
- XmlWrappingReader.cs
- SafeLibraryHandle.cs
- FileIOPermission.cs
- AppSettingsExpressionEditor.cs
- VisualCollection.cs
- StrokeDescriptor.cs
- ReleaseInstanceMode.cs
- XsdBuildProvider.cs
- ExceptionWrapper.cs
- PolyBezierSegment.cs
- sqlstateclientmanager.cs
- ListView.cs
- NativeMethods.cs
- TableProviderWrapper.cs
- FormClosedEvent.cs
- RadioButtonList.cs
- CuspData.cs
- GridViewPageEventArgs.cs
- SelfIssuedSamlTokenFactory.cs
- IdentityManager.cs
- _Events.cs
- ObjectListTitleAttribute.cs
- VirtualDirectoryMapping.cs
- GlyphCollection.cs
- ScaleTransform.cs
- baseaxisquery.cs
- QueryAsyncResult.cs
- PartitionedStream.cs
- AuthenticationModulesSection.cs
- DetailsViewUpdateEventArgs.cs
- SmtpFailedRecipientsException.cs
- ProfessionalColors.cs
- ProgressBarRenderer.cs
- InertiaExpansionBehavior.cs
- base64Transforms.cs
- RemotingService.cs
- ListDataHelper.cs
- IdnMapping.cs
- SecureUICommand.cs
- XmlC14NWriter.cs
- LinkLabelLinkClickedEvent.cs
- WizardPanelChangingEventArgs.cs
- SemaphoreFullException.cs
- AxHost.cs
- ConnectionManagementSection.cs
- XPathSingletonIterator.cs
- SmiEventSink.cs