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
- GenericIdentity.cs
- MimeReturn.cs
- XPathDocument.cs
- RawTextInputReport.cs
- MenuItem.cs
- XamlToRtfWriter.cs
- Exceptions.cs
- DataComponentMethodGenerator.cs
- IisTraceWebEventProvider.cs
- FormClosedEvent.cs
- HyperLinkStyle.cs
- XamlSerializerUtil.cs
- XmlMembersMapping.cs
- HttpRequest.cs
- UserMapPath.cs
- ComponentCache.cs
- DocumentPage.cs
- TraceRecord.cs
- AmbiguousMatchException.cs
- RpcCryptoContext.cs
- CompModSwitches.cs
- SoapReflectionImporter.cs
- Token.cs
- TransformGroup.cs
- HtmlButton.cs
- XmlWrappingReader.cs
- UserPreferenceChangingEventArgs.cs
- BackgroundWorker.cs
- connectionpool.cs
- LocatorPartList.cs
- XmlCharacterData.cs
- NewArrayExpression.cs
- RijndaelManaged.cs
- XamlBrushSerializer.cs
- MarginsConverter.cs
- DataServiceSaveChangesEventArgs.cs
- DependencyPropertyConverter.cs
- FileLogRecord.cs
- NameObjectCollectionBase.cs
- WindowsFormsSynchronizationContext.cs
- QueryConverter.cs
- sqlpipe.cs
- DecimalFormatter.cs
- MonthChangedEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- XhtmlStyleClass.cs
- EnumValAlphaComparer.cs
- XPathNavigator.cs
- ValidationResults.cs
- XmlSubtreeReader.cs
- BypassElementCollection.cs
- DocumentPageViewAutomationPeer.cs
- InkCollectionBehavior.cs
- EnumType.cs
- _FtpControlStream.cs
- CriticalFinalizerObject.cs
- WindowManager.cs
- LostFocusEventManager.cs
- VideoDrawing.cs
- ScrollBar.cs
- XmlSchemaObjectCollection.cs
- Repeater.cs
- Util.cs
- WsdlWriter.cs
- ProxyWebPartManager.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- smtpconnection.cs
- XmlHierarchyData.cs
- EventLogHandle.cs
- RenameRuleObjectDialog.cs
- XmlNodeChangedEventArgs.cs
- SecurityRuntime.cs
- PanelDesigner.cs
- CodeRegionDirective.cs
- ReadOnlyNameValueCollection.cs
- SQLRoleProvider.cs
- LicFileLicenseProvider.cs
- EmptyEnumerator.cs
- InvalidAsynchronousStateException.cs
- RefreshEventArgs.cs
- CngKeyBlobFormat.cs
- EntityConnection.cs
- CrossSiteScriptingValidation.cs
- MarkupCompilePass2.cs
- ConfigXmlElement.cs
- Metafile.cs
- SecureEnvironment.cs
- InvalidComObjectException.cs
- ContainerFilterService.cs
- StoryFragments.cs
- ConnectionManager.cs
- BlockCollection.cs
- Win32SafeHandles.cs
- URLMembershipCondition.cs
- ReferenceConverter.cs
- WaitHandle.cs
- IDQuery.cs
- TextElementAutomationPeer.cs
- DocumentOrderQuery.cs
- HttpCacheVaryByContentEncodings.cs