Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ValidationManager.cs
- SchemaTableOptionalColumn.cs
- DataGridViewBindingCompleteEventArgs.cs
- PostBackOptions.cs
- CodeDirectiveCollection.cs
- VectorAnimationUsingKeyFrames.cs
- MatrixConverter.cs
- XmlNodeChangedEventManager.cs
- TreeNode.cs
- PtsContext.cs
- XslAstAnalyzer.cs
- NameSpaceEvent.cs
- ImportCatalogPart.cs
- Size3D.cs
- FlowDocumentReader.cs
- DesignerActionVerbList.cs
- AdornerLayer.cs
- TokenizerHelper.cs
- TextEditorTables.cs
- Model3D.cs
- MultiBindingExpression.cs
- ObjectQuery.cs
- ConstraintManager.cs
- Transform3DCollection.cs
- UmAlQuraCalendar.cs
- AttachedAnnotationChangedEventArgs.cs
- SqlServer2KCompatibilityAnnotation.cs
- WizardPanel.cs
- RemotingSurrogateSelector.cs
- CalendarTable.cs
- KoreanCalendar.cs
- SystemIPInterfaceStatistics.cs
- PrinterUnitConvert.cs
- VersionedStream.cs
- CompiledRegexRunner.cs
- AsmxEndpointPickerExtension.cs
- XmlValueConverter.cs
- DBPropSet.cs
- CopyOnWriteList.cs
- DrawingCollection.cs
- ProviderSettingsCollection.cs
- Pkcs7Recipient.cs
- HtmlHead.cs
- DuplicateWaitObjectException.cs
- CommonProperties.cs
- UnsafeNativeMethods.cs
- DefaultValueTypeConverter.cs
- WizardSideBarListControlItemEventArgs.cs
- ArithmeticException.cs
- MetabaseReader.cs
- IisTraceListener.cs
- IPHostEntry.cs
- FocusTracker.cs
- AnnotationDocumentPaginator.cs
- SafeNativeMethods.cs
- ConfigXmlWhitespace.cs
- DefaultValueAttribute.cs
- ReaderWriterLock.cs
- Attributes.cs
- Timer.cs
- TableAutomationPeer.cs
- EmissiveMaterial.cs
- rsa.cs
- SafeFileHandle.cs
- IntellisenseTextBox.cs
- MsmqIntegrationMessagePool.cs
- ArrayEditor.cs
- NavigationWindow.cs
- IpcChannel.cs
- X509ServiceCertificateAuthentication.cs
- FreezableOperations.cs
- HttpListenerPrefixCollection.cs
- PropertyToken.cs
- DbCommandTree.cs
- DoWorkEventArgs.cs
- ToolBarOverflowPanel.cs
- PublisherMembershipCondition.cs
- TracePayload.cs
- GridViewDeleteEventArgs.cs
- CollectionChangedEventManager.cs
- ObjectStorage.cs
- Thread.cs
- _AuthenticationState.cs
- AlignmentYValidation.cs
- FontDifferentiator.cs
- CompilationUnit.cs
- Transform3DGroup.cs
- SecureConversationSecurityTokenParameters.cs
- isolationinterop.cs
- NativeRightsManagementAPIsStructures.cs
- CompressedStack.cs
- DataIdProcessor.cs
- FaultException.cs
- AbsoluteQuery.cs
- XmlEventCache.cs
- SocketPermission.cs
- GraphicsContainer.cs
- MetadataItemSerializer.cs
- HttpPostedFile.cs
- OdbcConnectionFactory.cs