Code:
/ 4.0 / 4.0 / untmp / 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 /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextSpanModifier.cs
- NamespaceDisplay.xaml.cs
- DetailsViewDeletedEventArgs.cs
- ToolboxItemFilterAttribute.cs
- Events.cs
- BevelBitmapEffect.cs
- ThrowHelper.cs
- ToolstripProfessionalRenderer.cs
- UnsignedPublishLicense.cs
- DBCommandBuilder.cs
- ComMethodElementCollection.cs
- Setter.cs
- RsaSecurityToken.cs
- SoapExtensionStream.cs
- ServiceHostFactory.cs
- WorkflowItemsPresenter.cs
- SpeechEvent.cs
- XmlValidatingReader.cs
- GCHandleCookieTable.cs
- InternalTypeHelper.cs
- Soap.cs
- BoundPropertyEntry.cs
- M3DUtil.cs
- Thread.cs
- HttpEncoder.cs
- ConstraintCollection.cs
- SystemKeyConverter.cs
- XmlCharCheckingWriter.cs
- ToolStripLocationCancelEventArgs.cs
- SessionEndingCancelEventArgs.cs
- CodeTypeOfExpression.cs
- Substitution.cs
- XmlSerializerSection.cs
- SplitterPanel.cs
- LambdaCompiler.Address.cs
- ColumnCollection.cs
- RepeaterItem.cs
- UnsafeNativeMethods.cs
- CustomError.cs
- EmitterCache.cs
- _BasicClient.cs
- DataGridViewComboBoxColumn.cs
- WpfSharedXamlSchemaContext.cs
- Timeline.cs
- KeyPullup.cs
- SymbolMethod.cs
- OleDbErrorCollection.cs
- FileSystemWatcher.cs
- BinHexEncoding.cs
- InterleavedZipPartStream.cs
- ProjectionPlan.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SqlBuilder.cs
- HttpCookieCollection.cs
- FormViewPagerRow.cs
- BuildResult.cs
- SoapMessage.cs
- MimeParameters.cs
- DocumentGridContextMenu.cs
- SchemeSettingElement.cs
- _ListenerRequestStream.cs
- EdmTypeAttribute.cs
- JsonEnumDataContract.cs
- InteropBitmapSource.cs
- StandardToolWindows.cs
- PublisherIdentityPermission.cs
- TypeGeneratedEventArgs.cs
- SelectionGlyphBase.cs
- UserNameSecurityTokenAuthenticator.cs
- DataColumn.cs
- Hex.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- LinqDataSourceContextEventArgs.cs
- FilteredAttributeCollection.cs
- PropertyPushdownHelper.cs
- CannotUnloadAppDomainException.cs
- UniformGrid.cs
- ArgIterator.cs
- SymLanguageType.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PcmConverter.cs
- CriticalFinalizerObject.cs
- SqlFunctionAttribute.cs
- initElementDictionary.cs
- BaseTemplateCodeDomTreeGenerator.cs
- _ListenerResponseStream.cs
- DockProviderWrapper.cs
- WaitForChangedResult.cs
- TimeSpanParse.cs
- FilterableAttribute.cs
- MethodBody.cs
- ParserExtension.cs
- SqlHelper.cs
- SpeakProgressEventArgs.cs
- FileLogRecordEnumerator.cs
- HttpRequestCacheValidator.cs
- DataGridViewCheckBoxCell.cs
- Drawing.cs
- OrderedDictionary.cs
- CallContext.cs