Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeDirectiveCollection.cs / 1 / CodeDirectiveCollection.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 CodeDirectiveCollection : CollectionBase { public CodeDirectiveCollection() { } public CodeDirectiveCollection(CodeDirectiveCollection value) { this.AddRange(value); } public CodeDirectiveCollection(CodeDirective[] value) { this.AddRange(value); } public CodeDirective this[int index] { get { return ((CodeDirective)(List[index])); } set { List[index] = value; } } public int Add(CodeDirective value) { return List.Add(value); } public void AddRange(CodeDirective[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } public void AddRange(CodeDirectiveCollection 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]); } } public bool Contains(CodeDirective value) { return List.Contains(value); } public void CopyTo(CodeDirective[] array, int index) { List.CopyTo(array, index); } public int IndexOf(CodeDirective value) { return List.IndexOf(value); } public void Insert(int index, CodeDirective value) { List.Insert(index, value); } public void Remove(CodeDirective value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //// 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 CodeDirectiveCollection : CollectionBase { public CodeDirectiveCollection() { } public CodeDirectiveCollection(CodeDirectiveCollection value) { this.AddRange(value); } public CodeDirectiveCollection(CodeDirective[] value) { this.AddRange(value); } public CodeDirective this[int index] { get { return ((CodeDirective)(List[index])); } set { List[index] = value; } } public int Add(CodeDirective value) { return List.Add(value); } public void AddRange(CodeDirective[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } public void AddRange(CodeDirectiveCollection 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]); } } public bool Contains(CodeDirective value) { return List.Contains(value); } public void CopyTo(CodeDirective[] array, int index) { List.CopyTo(array, index); } public int IndexOf(CodeDirective value) { return List.IndexOf(value); } public void Insert(int index, CodeDirective value) { List.Insert(index, value); } public void Remove(CodeDirective value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlAttributeCollection.cs
- ControlOperationInvoker.cs
- FocusManager.cs
- DragStartedEventArgs.cs
- Triplet.cs
- BuildProviderAppliesToAttribute.cs
- ContainerVisual.cs
- CultureInfoConverter.cs
- DecoderBestFitFallback.cs
- DesignerRegionMouseEventArgs.cs
- PrinterSettings.cs
- NavigationService.cs
- MobileControlPersister.cs
- RoleManagerModule.cs
- SiteOfOriginPart.cs
- SubclassTypeValidator.cs
- PrintPreviewGraphics.cs
- MatrixTransform3D.cs
- Transform.cs
- QilXmlReader.cs
- MessageRpc.cs
- RangeContentEnumerator.cs
- PropertyPathConverter.cs
- CompensatableTransactionScopeActivityDesigner.cs
- InternalCache.cs
- XmlFormatExtensionPointAttribute.cs
- DataBinding.cs
- ChildDocumentBlock.cs
- ClientScriptItem.cs
- ParameterToken.cs
- MaterializeFromAtom.cs
- ToolTip.cs
- MembershipSection.cs
- XamlClipboardData.cs
- X509Utils.cs
- TypeGeneratedEventArgs.cs
- ClientSettingsStore.cs
- Recipient.cs
- SafeHandles.cs
- EncoderReplacementFallback.cs
- OutOfMemoryException.cs
- UInt64Converter.cs
- Serializer.cs
- System.Data_BID.cs
- TextRangeSerialization.cs
- InsufficientMemoryException.cs
- ApplicationException.cs
- EntityDesignerUtils.cs
- UInt16Storage.cs
- DataSourceControl.cs
- ChannelDispatcherCollection.cs
- XmlNodeChangedEventManager.cs
- _SslState.cs
- DataGridPagingPage.cs
- FederatedMessageSecurityOverHttpElement.cs
- VarInfo.cs
- Point3DAnimationBase.cs
- PeerPresenceInfo.cs
- IfAction.cs
- StrongNameMembershipCondition.cs
- BrowserDefinition.cs
- ImageIndexConverter.cs
- SplashScreenNativeMethods.cs
- BorderGapMaskConverter.cs
- OdbcEnvironmentHandle.cs
- DrawItemEvent.cs
- HMACSHA384.cs
- SchemaImporterExtension.cs
- EndpointAddress.cs
- WindowsSysHeader.cs
- TemplateControlParser.cs
- SerializationInfo.cs
- XPathNodeHelper.cs
- SyndicationItemFormatter.cs
- XPathNodeHelper.cs
- sqlinternaltransaction.cs
- ValidationService.cs
- DataGridParentRows.cs
- ToolBarPanel.cs
- PrinterResolution.cs
- initElementDictionary.cs
- BaseCodePageEncoding.cs
- ModuleElement.cs
- _SslSessionsCache.cs
- CatalogPartCollection.cs
- LoginUtil.cs
- BindingValueChangedEventArgs.cs
- UIntPtr.cs
- FontCacheUtil.cs
- WebPartsPersonalizationAuthorization.cs
- QueryReaderSettings.cs
- FileLevelControlBuilderAttribute.cs
- IInstanceContextProvider.cs
- AuthenticationManager.cs
- mda.cs
- DbConnectionPoolCounters.cs
- KeyConstraint.cs
- ColumnHeaderConverter.cs
- PropertyTabChangedEvent.cs
- FilterElement.cs