Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PageThemeCodeDomTreeGenerator.cs
- HeaderFilter.cs
- SoapIncludeAttribute.cs
- CacheMemory.cs
- WebBrowserContainer.cs
- InputEventArgs.cs
- DoubleAnimationBase.cs
- Slider.cs
- AbstractExpressions.cs
- WebChannelFactory.cs
- PlainXmlWriter.cs
- EntityDesignerUtils.cs
- NamedPermissionSet.cs
- Compiler.cs
- UInt64Converter.cs
- ClassValidator.cs
- ConnectionManagementElement.cs
- xsdvalidator.cs
- PageEventArgs.cs
- XsltException.cs
- DataGridViewRowHeaderCell.cs
- _BasicClient.cs
- MemoryFailPoint.cs
- FixedLineResult.cs
- SurrogateEncoder.cs
- Decimal.cs
- TextContainer.cs
- DesignerMetadata.cs
- DnsCache.cs
- SerialErrors.cs
- Single.cs
- SafeIUnknown.cs
- UInt16Converter.cs
- PackagePart.cs
- WebPartDeleteVerb.cs
- PassportAuthentication.cs
- QualifiedCellIdBoolean.cs
- PropertyToken.cs
- AppSettingsExpressionBuilder.cs
- PeerReferralPolicy.cs
- WindowsTitleBar.cs
- DataObject.cs
- StateRuntime.cs
- InfiniteTimeSpanConverter.cs
- FormatterConverter.cs
- FunctionCommandText.cs
- HandlerFactoryWrapper.cs
- StateDesigner.TransitionInfo.cs
- ViewStateAttachedPropertyFeature.cs
- SyntaxCheck.cs
- ManagementEventArgs.cs
- DataGridViewCellLinkedList.cs
- TCPListener.cs
- OptimalBreakSession.cs
- StylusCollection.cs
- ClientSession.cs
- SystemTcpStatistics.cs
- Scene3D.cs
- HashHelpers.cs
- RegexCharClass.cs
- ConditionCollection.cs
- ForwardPositionQuery.cs
- ImageSourceValueSerializer.cs
- Cursor.cs
- XmlAttributeAttribute.cs
- ExpressionBindings.cs
- DictionaryEntry.cs
- ElementHostPropertyMap.cs
- Button.cs
- GetIndexBinder.cs
- ExcCanonicalXml.cs
- FlowDocumentFormatter.cs
- XmlNodeChangedEventManager.cs
- Soap12ProtocolImporter.cs
- RotateTransform.cs
- Transform3DGroup.cs
- RuleInfoComparer.cs
- CommentAction.cs
- backend.cs
- QuotedPrintableStream.cs
- CodeNamespaceCollection.cs
- Encoder.cs
- ScaleTransform.cs
- HMACSHA1.cs
- MembershipUser.cs
- DiagnosticsConfigurationHandler.cs
- Label.cs
- ValidatingCollection.cs
- LinkedResource.cs
- PolyQuadraticBezierSegment.cs
- Journaling.cs
- VariableAction.cs
- CheckBoxFlatAdapter.cs
- Int64AnimationUsingKeyFrames.cs
- Model3DGroup.cs
- NTAccount.cs
- ComponentCollection.cs
- Journaling.cs
- XmlLanguage.cs
- MeasurementDCInfo.cs