Code:
/ DotNET / DotNET / 8.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
- SafeRightsManagementSessionHandle.cs
- CustomAttributeSerializer.cs
- ObjectDataSourceEventArgs.cs
- SectionInformation.cs
- BaseUriWithWildcard.cs
- FileLevelControlBuilderAttribute.cs
- EdmComplexTypeAttribute.cs
- TypographyProperties.cs
- BamlBinaryReader.cs
- RemotingSurrogateSelector.cs
- MarginsConverter.cs
- FormattedText.cs
- ObjectTag.cs
- SqlDataAdapter.cs
- FlowNode.cs
- MetadataAssemblyHelper.cs
- UInt64.cs
- EntityDataSourceContainerNameItem.cs
- SecurityKeyUsage.cs
- XmlDownloadManager.cs
- OdbcConnectionFactory.cs
- DnsPermission.cs
- DropTarget.cs
- LicenseProviderAttribute.cs
- XmlSchemaGroup.cs
- ContentHostHelper.cs
- PixelFormat.cs
- ZipIOExtraFieldPaddingElement.cs
- Properties.cs
- RankException.cs
- PartitionResolver.cs
- TreeViewBindingsEditor.cs
- MultiplexingFormatMapping.cs
- CollectionChangeEventArgs.cs
- VirtualDirectoryMapping.cs
- KeyEvent.cs
- CngProperty.cs
- AssemblyAssociatedContentFileAttribute.cs
- Error.cs
- XamlStream.cs
- GeometryHitTestParameters.cs
- WebZone.cs
- CellParaClient.cs
- SmiEventSink_DeferedProcessing.cs
- DataStreamFromComStream.cs
- ThreadSafeList.cs
- ListViewDeleteEventArgs.cs
- RefType.cs
- PostBackOptions.cs
- ReadOnlyHierarchicalDataSource.cs
- OleDbWrapper.cs
- Rect3D.cs
- VariableModifiersHelper.cs
- DocumentReferenceCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Activator.cs
- CardSpaceShim.cs
- CachingHintValidation.cs
- LinkUtilities.cs
- Keyboard.cs
- recordstate.cs
- UrlMappingsSection.cs
- BitmapMetadata.cs
- OleDbCommand.cs
- GeneralTransform3DCollection.cs
- InertiaExpansionBehavior.cs
- recordstatefactory.cs
- PropertyGridEditorPart.cs
- ConstraintConverter.cs
- MdImport.cs
- EventSetter.cs
- ErrorActivity.cs
- HMACSHA384.cs
- ContainerActivationHelper.cs
- CompiledRegexRunnerFactory.cs
- SmiRecordBuffer.cs
- SqlExpander.cs
- LayoutManager.cs
- EditorZone.cs
- DynamicRendererThreadManager.cs
- TransformerConfigurationWizardBase.cs
- KeyEventArgs.cs
- PageThemeBuildProvider.cs
- RichTextBoxAutomationPeer.cs
- IIS7UserPrincipal.cs
- ListViewDesigner.cs
- LocationReferenceEnvironment.cs
- ResourceBinder.cs
- WebSysDefaultValueAttribute.cs
- CacheHelper.cs
- DefaultObjectSerializer.cs
- EnumerableRowCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- SecurityPermission.cs
- ProjectionPath.cs
- BulletDecorator.cs
- SiteMapNodeItem.cs
- clipboard.cs
- JsonEnumDataContract.cs
- HtmlMeta.cs