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
- DataServiceException.cs
- GetPageNumberCompletedEventArgs.cs
- UrlMappingsModule.cs
- SetIterators.cs
- ArgumentException.cs
- XmlSchemaObjectCollection.cs
- ConvertersCollection.cs
- SetStoryboardSpeedRatio.cs
- PrintController.cs
- ConsumerConnectionPointCollection.cs
- ContainerActivationHelper.cs
- TreeSet.cs
- Scripts.cs
- Cell.cs
- BidirectionalDictionary.cs
- TextParagraphCache.cs
- HtmlTitle.cs
- TextTreeObjectNode.cs
- ExpandedWrapper.cs
- compensatingcollection.cs
- OleDbReferenceCollection.cs
- OdbcException.cs
- ObjectDataSourceEventArgs.cs
- WebServiceClientProxyGenerator.cs
- RuntimeVariableList.cs
- Compilation.cs
- AnimatedTypeHelpers.cs
- DropDownButton.cs
- AddInStore.cs
- Trace.cs
- RunInstallerAttribute.cs
- LabelLiteral.cs
- DataGridViewElement.cs
- UnsafeNativeMethods.cs
- FacetEnabledSchemaElement.cs
- WorkflowOperationAsyncResult.cs
- OpacityConverter.cs
- ReadOnlyActivityGlyph.cs
- XmlDataLoader.cs
- PropertyValue.cs
- PtsHelper.cs
- DescendentsWalkerBase.cs
- RequestSecurityToken.cs
- MappingSource.cs
- BufferBuilder.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ActivityTypeResolver.xaml.cs
- CodeConstructor.cs
- KeyGestureConverter.cs
- ToolStripItemEventArgs.cs
- CustomError.cs
- DateTimeSerializationSection.cs
- SafePEFileHandle.cs
- CollectionViewGroup.cs
- DefaultValidator.cs
- ClientEventManager.cs
- PrtCap_Public_Simple.cs
- RegisteredHiddenField.cs
- GeneralTransformGroup.cs
- NullableDecimalMinMaxAggregationOperator.cs
- Attributes.cs
- DesignerDataView.cs
- UICuesEvent.cs
- MenuItemBindingCollection.cs
- PeerInvitationResponse.cs
- LocalsItemDescription.cs
- XmlTextReaderImpl.cs
- ScrollProviderWrapper.cs
- XmlRootAttribute.cs
- ErrorInfoXmlDocument.cs
- PixelFormat.cs
- SHA512.cs
- DataControlImageButton.cs
- HScrollProperties.cs
- WindowsTokenRoleProvider.cs
- PageCodeDomTreeGenerator.cs
- BulletChrome.cs
- SqlNodeTypeOperators.cs
- ProcessRequestArgs.cs
- NativeMethods.cs
- CfgParser.cs
- UpdatableGenericsFeature.cs
- ProcessHostServerConfig.cs
- CollectionChangedEventManager.cs
- ToolZone.cs
- JoinSymbol.cs
- ResourceContainerWrapper.cs
- FileDialogCustomPlace.cs
- KeyPullup.cs
- pingexception.cs
- ColumnTypeConverter.cs
- EarlyBoundInfo.cs
- StringCollection.cs
- TokenFactoryBase.cs
- EventBuilder.cs
- XmlSchemaFacet.cs
- DesignerActionUI.cs
- TreeNodeBindingCollection.cs
- versioninfo.cs
- DesignerInterfaces.cs