Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeDeclarationCollection.cs / 1 / CodeAttributeDeclarationCollection.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 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 /// . // 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 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
- ArgIterator.cs
- NameValueFileSectionHandler.cs
- HotSpot.cs
- PictureBox.cs
- Stylesheet.cs
- LinqDataSourceView.cs
- CfgRule.cs
- MobileRedirect.cs
- CompilerCollection.cs
- DictionaryManager.cs
- NameService.cs
- BitHelper.cs
- DataGridViewRowStateChangedEventArgs.cs
- SecurityPermission.cs
- EpmContentSerializer.cs
- LinearKeyFrames.cs
- PointAnimationUsingKeyFrames.cs
- GroupPartitionExpr.cs
- TimeSpanConverter.cs
- RemoteWebConfigurationHost.cs
- DataBindingCollection.cs
- XamlStream.cs
- DoubleCollection.cs
- PageThemeBuildProvider.cs
- TextPattern.cs
- DnsPermission.cs
- IISMapPath.cs
- XmlBaseReader.cs
- ClientTarget.cs
- RuntimeArgumentHandle.cs
- SerializationTrace.cs
- EditorPart.cs
- DetailsViewInsertEventArgs.cs
- Baml6ConstructorInfo.cs
- ProtectedProviderSettings.cs
- QueryStringParameter.cs
- RewritingPass.cs
- WebPageTraceListener.cs
- EmptyStringExpandableObjectConverter.cs
- XmlObjectSerializerWriteContextComplex.cs
- IPCCacheManager.cs
- TextTrailingWordEllipsis.cs
- RtfToXamlReader.cs
- FrugalMap.cs
- NameService.cs
- CollectionBuilder.cs
- Quad.cs
- EventArgs.cs
- GB18030Encoding.cs
- UnsupportedPolicyOptionsException.cs
- MetadataUtilsSmi.cs
- XPathScanner.cs
- WebMessageEncodingElement.cs
- RoleGroupCollection.cs
- BindingManagerDataErrorEventArgs.cs
- ConfigXmlWhitespace.cs
- UserValidatedEventArgs.cs
- StylusSystemGestureEventArgs.cs
- CalendarAutoFormatDialog.cs
- BinaryObjectInfo.cs
- AssemblyEvidenceFactory.cs
- CssClassPropertyAttribute.cs
- DocumentViewerAutomationPeer.cs
- Bitmap.cs
- TdsParameterSetter.cs
- DataFieldCollectionEditor.cs
- XmlAnyElementAttribute.cs
- Trace.cs
- PatternMatcher.cs
- DeviceFiltersSection.cs
- DataObjectEventArgs.cs
- XpsResource.cs
- SelectedGridItemChangedEvent.cs
- CDSsyncETWBCLProvider.cs
- XmlElementAttributes.cs
- CompareValidator.cs
- DataGridCellEditEndingEventArgs.cs
- TreeViewItemAutomationPeer.cs
- InstalledFontCollection.cs
- LiteralTextParser.cs
- HMAC.cs
- ArraySubsetEnumerator.cs
- CatalogPartChrome.cs
- XmlSchemaAnnotation.cs
- AccessibleObject.cs
- Splitter.cs
- TableRowCollection.cs
- _IPv4Address.cs
- CaseInsensitiveOrdinalStringComparer.cs
- InnerItemCollectionView.cs
- ValueConversionAttribute.cs
- NameValuePair.cs
- TemplateBuilder.cs
- ClientBuildManager.cs
- SessionSwitchEventArgs.cs
- DataGridViewColumnConverter.cs
- RegexCapture.cs
- ArrangedElementCollection.cs
- FileDialogCustomPlace.cs
- RefExpr.cs