Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeDeclarationCollection.cs / 1305376 / CodeAttributeDeclarationCollection.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 CodeAttributeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeAttributeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeAttributeDeclaration this[int index] { get { return ((CodeAttributeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeAttributeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeAttributeDeclaration[] 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(CodeAttributeDeclarationCollection 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(CodeAttributeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeAttributeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeAttributeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeAttributeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeAttributeDeclaration value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //Removes a specific ///from the /// . // // // ----------------------------------------------------------------------------- // 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 CodeAttributeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeAttributeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeAttributeDeclaration this[int index] { get { return ((CodeAttributeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeAttributeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeAttributeDeclaration[] 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(CodeAttributeDeclarationCollection 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(CodeAttributeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeAttributeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeAttributeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeAttributeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeAttributeDeclaration 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
- ConfigurationSection.cs
- KnownTypesHelper.cs
- RegexRunner.cs
- DisableDpiAwarenessAttribute.cs
- WebPartTracker.cs
- CompilerGlobalScopeAttribute.cs
- ICollection.cs
- PathStreamGeometryContext.cs
- UnknownBitmapDecoder.cs
- DesignerContextDescriptor.cs
- HostElement.cs
- ObjectSecurity.cs
- VirtualPathUtility.cs
- RectangleConverter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HotSpotCollectionEditor.cs
- OptionUsage.cs
- FlowDocumentPage.cs
- SqlFunctionAttribute.cs
- TypeHelper.cs
- ListItemParagraph.cs
- NameGenerator.cs
- CodeCompiler.cs
- ApplyImportsAction.cs
- ArgumentNullException.cs
- ObjectParameterCollection.cs
- ConfigurationManagerHelperFactory.cs
- AppDomainUnloadedException.cs
- Delay.cs
- DbParameterCollection.cs
- _IPv4Address.cs
- DirectionalLight.cs
- XmlKeywords.cs
- InternalConfigRoot.cs
- EmbeddedMailObject.cs
- UrlMappingsSection.cs
- xmlformatgeneratorstatics.cs
- EntityDataSourceStatementEditorForm.cs
- DictionaryItemsCollection.cs
- WsdlBuildProvider.cs
- Geometry3D.cs
- Attribute.cs
- ContractListAdapter.cs
- BlockCollection.cs
- DiffuseMaterial.cs
- MembershipSection.cs
- ModuleBuilder.cs
- DateTimeUtil.cs
- ArithmeticException.cs
- CrossSiteScriptingValidation.cs
- ProviderConnectionPoint.cs
- IntSecurity.cs
- BrushMappingModeValidation.cs
- Mappings.cs
- BindMarkupExtensionSerializer.cs
- TextParaClient.cs
- InputReport.cs
- CmsInterop.cs
- LongSumAggregationOperator.cs
- XmlAttributes.cs
- SourceFileBuildProvider.cs
- PathParser.cs
- CodeTypeDelegate.cs
- DoWorkEventArgs.cs
- FileUtil.cs
- RepeatBehaviorConverter.cs
- RawUIStateInputReport.cs
- UnsafeMethods.cs
- ConfigurationElementCollection.cs
- ClientEventManager.cs
- LayoutExceptionEventArgs.cs
- AlignmentYValidation.cs
- SafeTimerHandle.cs
- PrintPreviewDialog.cs
- RtfToken.cs
- DocumentScope.cs
- LiteralControl.cs
- TextDecorationCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- TypeForwardedFromAttribute.cs
- DictionarySectionHandler.cs
- EventOpcode.cs
- HTMLTagNameToTypeMapper.cs
- StorageConditionPropertyMapping.cs
- TextServicesCompartmentContext.cs
- AsyncMethodInvoker.cs
- HtmlElementEventArgs.cs
- XamlPointCollectionSerializer.cs
- StylusPointProperty.cs
- Translator.cs
- XmlSchemaParticle.cs
- GeneralTransform3D.cs
- ReadWriteObjectLock.cs
- RawKeyboardInputReport.cs
- CommonProperties.cs
- ConnectionPoint.cs
- ExpressionBuilderContext.cs
- AccessControlList.cs
- CommandSet.cs
- Stack.cs