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
- AssociatedControlConverter.cs
- SpStreamWrapper.cs
- DictionarySectionHandler.cs
- X509AsymmetricSecurityKey.cs
- EventPropertyMap.cs
- ScrollData.cs
- Size3D.cs
- DesignerAttribute.cs
- KeyInstance.cs
- UserControlCodeDomTreeGenerator.cs
- NativeMethods.cs
- Number.cs
- TraceInternal.cs
- SerializationException.cs
- Bitmap.cs
- ColumnResult.cs
- Vector3D.cs
- StylusPlugInCollection.cs
- TextMessageEncoder.cs
- OdbcConnectionOpen.cs
- TraceEventCache.cs
- ScopelessEnumAttribute.cs
- NamespaceCollection.cs
- RegexGroup.cs
- OleDbTransaction.cs
- Util.cs
- SQLInt64Storage.cs
- ListDictionaryInternal.cs
- PseudoWebRequest.cs
- MultiDataTrigger.cs
- xmlfixedPageInfo.cs
- ItemList.cs
- WebPartConnectionsEventArgs.cs
- XmlSchemaInferenceException.cs
- InstanceDescriptor.cs
- OpenFileDialog.cs
- MethodAccessException.cs
- DynamicResourceExtension.cs
- TraceContext.cs
- DataGridViewSelectedColumnCollection.cs
- CollectionChangeEventArgs.cs
- ChangeInterceptorAttribute.cs
- WindowsStreamSecurityUpgradeProvider.cs
- GetPageNumberCompletedEventArgs.cs
- AsyncDataRequest.cs
- DbBuffer.cs
- HttpDebugHandler.cs
- ProtectedConfigurationProviderCollection.cs
- IEnumerable.cs
- AnimationTimeline.cs
- ApplyHostConfigurationBehavior.cs
- ThreadExceptionDialog.cs
- RegexMatchCollection.cs
- PipelineComponent.cs
- ClientSettingsSection.cs
- HandleCollector.cs
- PointAnimationBase.cs
- SynthesizerStateChangedEventArgs.cs
- ModulesEntry.cs
- MarkupCompilePass2.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlException.cs
- ParserHooks.cs
- OleDragDropHandler.cs
- BindingExpression.cs
- WebRequestModuleElement.cs
- DiscardableAttribute.cs
- OrderByLifter.cs
- WindowsTooltip.cs
- TypeNameHelper.cs
- RepeatInfo.cs
- DigitalSignatureProvider.cs
- MouseGestureValueSerializer.cs
- LinqDataSourceDeleteEventArgs.cs
- ReferenceConverter.cs
- ColumnClickEvent.cs
- DataTransferEventArgs.cs
- Tuple.cs
- ping.cs
- LayoutUtils.cs
- GZipDecoder.cs
- ListControl.cs
- PathGradientBrush.cs
- EventLogPermissionAttribute.cs
- SqlDelegatedTransaction.cs
- ReflectionTypeLoadException.cs
- Serializer.cs
- NoClickablePointException.cs
- FileVersionInfo.cs
- WebSysDefaultValueAttribute.cs
- DateTimeOffsetAdapter.cs
- CollectionChange.cs
- ExtendedPropertyCollection.cs
- TableLayout.cs
- DocumentOutline.cs
- MutableAssemblyCacheEntry.cs
- FtpWebRequest.cs
- EventDrivenDesigner.cs
- DurationConverter.cs
- DesignTimeResourceProviderFactoryAttribute.cs