Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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); } } } // 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 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); } } } // 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
- _SafeNetHandles.cs
- FullTextBreakpoint.cs
- TraceSection.cs
- HtmlInputCheckBox.cs
- GiveFeedbackEventArgs.cs
- HttpChannelHelpers.cs
- SmtpClient.cs
- IODescriptionAttribute.cs
- DataGridViewMethods.cs
- Preprocessor.cs
- XmlSchemaElement.cs
- SmtpFailedRecipientsException.cs
- CodeParameterDeclarationExpression.cs
- DesignerOptionService.cs
- MachineKeyConverter.cs
- ConstructorExpr.cs
- SecurityTokenException.cs
- CharAnimationUsingKeyFrames.cs
- TransformDescriptor.cs
- XmlArrayItemAttribute.cs
- X509Extension.cs
- SplitterCancelEvent.cs
- GifBitmapDecoder.cs
- DragCompletedEventArgs.cs
- FontStretch.cs
- TypeBinaryExpression.cs
- PrtCap_Public.cs
- ParameterModifier.cs
- PtsHelper.cs
- CompilationSection.cs
- Token.cs
- CustomWebEventKey.cs
- StaticFileHandler.cs
- Effect.cs
- RemotingServices.cs
- RowUpdatingEventArgs.cs
- UInt16.cs
- FlowDocument.cs
- CollaborationHelperFunctions.cs
- WorkflowRuntimeServiceElementCollection.cs
- DebugView.cs
- CompModHelpers.cs
- EventMappingSettings.cs
- MemoryStream.cs
- ToolStripPanel.cs
- NullableDoubleSumAggregationOperator.cs
- PropertyEntry.cs
- PersonalizablePropertyEntry.cs
- HtmlDocument.cs
- GenericParameterDataContract.cs
- _SingleItemRequestCache.cs
- BufferedStream.cs
- CompilationSection.cs
- MsmqReceiveHelper.cs
- SymbolType.cs
- ElapsedEventArgs.cs
- WindowsSpinner.cs
- InvalidateEvent.cs
- ContentElement.cs
- QueryStatement.cs
- SqlComparer.cs
- HttpDebugHandler.cs
- SoapFormatter.cs
- BindingNavigator.cs
- Int16.cs
- DiscoveryRequestHandler.cs
- ProgressBar.cs
- DynamicExpression.cs
- ButtonChrome.cs
- IList.cs
- TextRunProperties.cs
- InlineUIContainer.cs
- PeerUnsafeNativeMethods.cs
- PropertyStore.cs
- CookielessHelper.cs
- InkCanvas.cs
- DriveInfo.cs
- ContextMenuAutomationPeer.cs
- NamespaceEmitter.cs
- Range.cs
- WindowsRichEditRange.cs
- CatalogPartChrome.cs
- NamedPipeProcessProtocolHandler.cs
- NumberAction.cs
- AttachedPropertyDescriptor.cs
- UpdateProgress.cs
- AddInIpcChannel.cs
- XsdValidatingReader.cs
- ButtonDesigner.cs
- AsymmetricSignatureDeformatter.cs
- ParallelSeparator.xaml.cs
- Pkcs9Attribute.cs
- QuerySettings.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WmpBitmapEncoder.cs
- FileBasedResourceGroveler.cs
- DoubleCollectionConverter.cs
- ApplicationTrust.cs
- SerializationInfoEnumerator.cs
- XmlSerializerFactory.cs