Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgumentCollection.cs / 1 / CodeAttributeArgumentCollection.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 CodeAttributeArgumentCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeAttributeArgumentCollection() { } ////// Initializes a new instance of ///. /// /// public CodeAttributeArgumentCollection(CodeAttributeArgumentCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeAttributeArgumentCollection(CodeAttributeArgument[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeAttributeArgument this[int index] { get { return ((CodeAttributeArgument)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeAttributeArgument value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeAttributeArgument[] 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(CodeAttributeArgumentCollection 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(CodeAttributeArgument value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeAttributeArgument[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeAttributeArgument value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeAttributeArgument value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeAttributeArgument 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 CodeAttributeArgumentCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeAttributeArgumentCollection() { } ////// Initializes a new instance of ///. /// /// public CodeAttributeArgumentCollection(CodeAttributeArgumentCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeAttributeArgumentCollection(CodeAttributeArgument[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeAttributeArgument this[int index] { get { return ((CodeAttributeArgument)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeAttributeArgument value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeAttributeArgument[] 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(CodeAttributeArgumentCollection 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(CodeAttributeArgument value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeAttributeArgument[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeAttributeArgument value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeAttributeArgument value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeAttributeArgument 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
- GridViewEditEventArgs.cs
- MemberRelationshipService.cs
- ColorConvertedBitmap.cs
- CompModSwitches.cs
- MetadataCache.cs
- UTF7Encoding.cs
- KeyInstance.cs
- SHA384Managed.cs
- ExternalDataExchangeService.cs
- EdmComplexTypeAttribute.cs
- DashStyle.cs
- UdpDiscoveryEndpointElement.cs
- QuotedStringWriteStateInfo.cs
- BridgeDataRecord.cs
- SiblingIterators.cs
- VisualBrush.cs
- DispatcherObject.cs
- GeometryHitTestResult.cs
- DynamicDocumentPaginator.cs
- ReadOnlyDictionary.cs
- ErrorEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DocumentOrderQuery.cs
- CompressedStack.cs
- GiveFeedbackEvent.cs
- EncoderReplacementFallback.cs
- PersonalizationStateInfo.cs
- ReflectionHelper.cs
- TypeReference.cs
- ExtenderProvidedPropertyAttribute.cs
- DataObjectFieldAttribute.cs
- StringUtil.cs
- sqlser.cs
- ObjectDataSourceStatusEventArgs.cs
- NamedPipeDuplicateContext.cs
- SiteMapNodeItemEventArgs.cs
- SqlInternalConnectionTds.cs
- TextEditorContextMenu.cs
- ReferencedAssemblyResolver.cs
- ParseHttpDate.cs
- DeriveBytes.cs
- QilDataSource.cs
- FileDialogCustomPlacesCollection.cs
- XmlSchemas.cs
- LoadedOrUnloadedOperation.cs
- ToolboxDataAttribute.cs
- EntityCommandCompilationException.cs
- DecoratedNameAttribute.cs
- HttpValueCollection.cs
- Hashtable.cs
- PartitionResolver.cs
- ProfileManager.cs
- xamlnodes.cs
- DataServiceQueryProvider.cs
- HtmlInputFile.cs
- MemoryFailPoint.cs
- ItemAutomationPeer.cs
- CharConverter.cs
- WebResourceUtil.cs
- HttpModulesSection.cs
- ValidationVisibilityAttribute.cs
- DataGridCell.cs
- HebrewCalendar.cs
- QuestionEventArgs.cs
- StringCollection.cs
- Pts.cs
- ToolStripDropDownMenu.cs
- AsyncStreamReader.cs
- WebSysDisplayNameAttribute.cs
- CompositeControl.cs
- CodeRegionDirective.cs
- PictureBox.cs
- UIElementPropertyUndoUnit.cs
- UIAgentCrashedException.cs
- ReferenceEqualityComparer.cs
- ToolTipAutomationPeer.cs
- RangeBaseAutomationPeer.cs
- CodeLinePragma.cs
- _ProxyChain.cs
- MobileSysDescriptionAttribute.cs
- SmtpException.cs
- KeyValueConfigurationElement.cs
- HtmlTitle.cs
- CollectionDataContract.cs
- ResourceAttributes.cs
- RangeValidator.cs
- CodeTypeReference.cs
- InheritablePropertyChangeInfo.cs
- SolidColorBrush.cs
- BufferedGraphicsContext.cs
- CacheSection.cs
- UIAgentMonitorHandle.cs
- BitmapEffect.cs
- WindowsFormsEditorServiceHelper.cs
- BulletChrome.cs
- WebBrowsableAttribute.cs
- GridLength.cs
- ImportCatalogPart.cs
- WS2007FederationHttpBinding.cs
- DesignerCapabilities.cs