Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1305376 / CodeTypeDeclarationCollection.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 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
- RectangleGeometry.cs
- webeventbuffer.cs
- TableLayoutCellPaintEventArgs.cs
- BaseTemplateCodeDomTreeGenerator.cs
- QueueProcessor.cs
- StringSorter.cs
- PublisherMembershipCondition.cs
- WindowsSpinner.cs
- DocumentPageTextView.cs
- UserUseLicenseDictionaryLoader.cs
- X509CertificateCollection.cs
- XmlNotation.cs
- BooleanExpr.cs
- CodeEventReferenceExpression.cs
- ObjectViewListener.cs
- OperationCanceledException.cs
- TypeConverterAttribute.cs
- XmlRawWriter.cs
- UnsafeNativeMethods.cs
- GenerateTemporaryTargetAssembly.cs
- SplineKeyFrames.cs
- FirstQueryOperator.cs
- CompositeDispatchFormatter.cs
- PlainXmlSerializer.cs
- WaitForChangedResult.cs
- AsyncResult.cs
- ClientRoleProvider.cs
- SetIterators.cs
- InputBindingCollection.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ConfigurationStrings.cs
- GlyphRun.cs
- WriteFileContext.cs
- String.cs
- XmlAttributeCollection.cs
- EdmType.cs
- PathFigureCollectionValueSerializer.cs
- SimpleWebHandlerParser.cs
- LingerOption.cs
- InputProcessorProfilesLoader.cs
- CheckBoxStandardAdapter.cs
- BridgeDataRecord.cs
- WebPartConnectionsConfigureVerb.cs
- DataBinder.cs
- SqlDataSourceFilteringEventArgs.cs
- QilInvokeEarlyBound.cs
- X509CertificateClaimSet.cs
- SmtpFailedRecipientException.cs
- SecurityManager.cs
- OperationCanceledException.cs
- BCLDebug.cs
- ConfigurationStrings.cs
- SecurityMode.cs
- TextRunTypographyProperties.cs
- QilLiteral.cs
- AnnotationMap.cs
- IIS7UserPrincipal.cs
- ReflectionTypeLoadException.cs
- PagerSettings.cs
- OrderPreservingPipeliningSpoolingTask.cs
- _CommandStream.cs
- RegionIterator.cs
- Peer.cs
- ProviderConnectionPointCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TypeFieldSchema.cs
- MimeTypePropertyAttribute.cs
- PropertyNames.cs
- ObjectPropertyMapping.cs
- Pool.cs
- StructuralCache.cs
- ProcessStartInfo.cs
- RadialGradientBrush.cs
- ProjectionPath.cs
- ResourceIDHelper.cs
- MessageDecoder.cs
- SendingRequestEventArgs.cs
- CommandValueSerializer.cs
- UnknownBitmapDecoder.cs
- StorageEntityTypeMapping.cs
- TextShapeableCharacters.cs
- SocketException.cs
- DataBindingExpressionBuilder.cs
- AutomationFocusChangedEventArgs.cs
- SafeFileMapViewHandle.cs
- ObjectSecurity.cs
- MetabaseServerConfig.cs
- CompensatableSequenceActivity.cs
- DbInsertCommandTree.cs
- DeferredElementTreeState.cs
- SpecularMaterial.cs
- BaseDataListActionList.cs
- AsyncOperationLifetimeManager.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BidOverLoads.cs
- XmlTypeAttribute.cs
- SafeNativeMethods.cs
- SimpleRecyclingCache.cs
- SqlParameter.cs
- OverloadGroupAttribute.cs