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
- HtmlTableRowCollection.cs
- StreamGeometry.cs
- ReachDocumentSequenceSerializer.cs
- ListViewItemSelectionChangedEvent.cs
- DropDownList.cs
- UInt16Converter.cs
- MembershipValidatePasswordEventArgs.cs
- IdentityNotMappedException.cs
- BrowserCapabilitiesCompiler.cs
- BitmapDecoder.cs
- FragmentQueryProcessor.cs
- WindowsMenu.cs
- EmptyReadOnlyDictionaryInternal.cs
- HttpRequest.cs
- Membership.cs
- ListViewUpdatedEventArgs.cs
- TextEndOfSegment.cs
- ParentUndoUnit.cs
- ObjectDataSourceSelectingEventArgs.cs
- PassportAuthenticationModule.cs
- DateRangeEvent.cs
- DataRelationPropertyDescriptor.cs
- DataGridViewCellValidatingEventArgs.cs
- EntityTemplateUserControl.cs
- TableMethodGenerator.cs
- CompilerInfo.cs
- Schema.cs
- WebPartCollection.cs
- ConnectionProviderAttribute.cs
- Globals.cs
- CompatibleIComparer.cs
- TraceData.cs
- MetadataArtifactLoaderCompositeResource.cs
- AssemblyAttributesGoHere.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ExpandableObjectConverter.cs
- HtmlInputCheckBox.cs
- EmptyReadOnlyDictionaryInternal.cs
- SuppressIldasmAttribute.cs
- CompoundFileIOPermission.cs
- NumberFormatter.cs
- IdentitySection.cs
- InstanceData.cs
- ObjectContext.cs
- RTLAwareMessageBox.cs
- TableLayoutCellPaintEventArgs.cs
- UIInitializationException.cs
- TypeBuilderInstantiation.cs
- SessionStateModule.cs
- WindowsScroll.cs
- HttpPostedFile.cs
- WebPartDisplayModeCancelEventArgs.cs
- XPathSingletonIterator.cs
- WebEventTraceProvider.cs
- EntityDataSourceChangedEventArgs.cs
- AffineTransform3D.cs
- DesignerActionTextItem.cs
- TiffBitmapEncoder.cs
- MethodSet.cs
- DependencyObjectCodeDomSerializer.cs
- Shape.cs
- WaitHandleCannotBeOpenedException.cs
- GraphicsContext.cs
- DataSourceView.cs
- CodeNamespaceCollection.cs
- HttpListenerException.cs
- ErrorInfoXmlDocument.cs
- PasswordRecovery.cs
- ViewStateModeByIdAttribute.cs
- Int32Converter.cs
- Win32Native.cs
- XmlSchemaSimpleTypeUnion.cs
- ControlHelper.cs
- TypeUtil.cs
- FreezableCollection.cs
- TraceHelpers.cs
- DateTimeFormatInfo.cs
- EncryptedType.cs
- WaitForChangedResult.cs
- ConditionalAttribute.cs
- TextSpan.cs
- basevalidator.cs
- SamlSerializer.cs
- IChannel.cs
- DbConnectionPoolIdentity.cs
- FilteredDataSetHelper.cs
- NameHandler.cs
- NaturalLanguageHyphenator.cs
- CompareValidator.cs
- WorkflowOperationContext.cs
- ExecutionEngineException.cs
- _ChunkParse.cs
- WindowsAuthenticationModule.cs
- Operators.cs
- DataSourceHelper.cs
- SynchronizedPool.cs
- EncryptedPackageFilter.cs
- RawStylusSystemGestureInputReport.cs
- ProcessInfo.cs
- InternalConfigRoot.cs