Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Intellisense.cs
- TableHeaderCell.cs
- ProfileModule.cs
- XmlIlGenerator.cs
- MouseOverProperty.cs
- UdpTransportSettingsElement.cs
- RequestCacheValidator.cs
- PersonalizationProviderCollection.cs
- QilFactory.cs
- RectAnimationUsingKeyFrames.cs
- DrawingGroupDrawingContext.cs
- SpnegoTokenProvider.cs
- XmlSerializationReader.cs
- XmlSchemaNotation.cs
- HashHelper.cs
- SchemaImporterExtension.cs
- FileDialogPermission.cs
- SqlTopReducer.cs
- EventLogRecord.cs
- UnsafeNativeMethods.cs
- TextRunCacheImp.cs
- InheritanceContextHelper.cs
- RuntimeConfigurationRecord.cs
- DocumentXPathNavigator.cs
- XmlReader.cs
- DataGridTextBoxColumn.cs
- TextBoxBase.cs
- DriveInfo.cs
- Int16Converter.cs
- HtmlFormWrapper.cs
- ReversePositionQuery.cs
- dtdvalidator.cs
- DSASignatureDeformatter.cs
- DesignerAttribute.cs
- HashHelper.cs
- TypeReference.cs
- MaterializeFromAtom.cs
- DocumentApplicationJournalEntry.cs
- DashStyle.cs
- ToolCreatedEventArgs.cs
- StringSorter.cs
- HttpVersion.cs
- dataprotectionpermission.cs
- SafePEFileHandle.cs
- ValidatorCollection.cs
- TempEnvironment.cs
- StandardTransformFactory.cs
- UnsafeNativeMethods.cs
- TextTreePropertyUndoUnit.cs
- FontFamilyConverter.cs
- DataPagerFieldCommandEventArgs.cs
- WebPartRestoreVerb.cs
- SoapTypeAttribute.cs
- ExtenderControl.cs
- SyndicationLink.cs
- EntityDesignerDataSourceView.cs
- HyperLink.cs
- ArgIterator.cs
- CellTreeNodeVisitors.cs
- Rotation3D.cs
- PresentationSource.cs
- GridViewRow.cs
- List.cs
- TextServicesPropertyRanges.cs
- OracleRowUpdatingEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- Timer.cs
- NumericUpDownAcceleration.cs
- ExceptionNotification.cs
- SQLStringStorage.cs
- RequestNavigateEventArgs.cs
- Graph.cs
- SmtpNetworkElement.cs
- TagPrefixCollection.cs
- PropertyOverridesTypeEditor.cs
- InvalidProgramException.cs
- ViewgenContext.cs
- DrawingAttributes.cs
- SafeEventHandle.cs
- BinaryReader.cs
- OutputBuffer.cs
- AdapterUtil.cs
- NavigationCommands.cs
- AutoResizedEvent.cs
- SectionUpdates.cs
- WebColorConverter.cs
- PreProcessInputEventArgs.cs
- ContainerParagraph.cs
- SortedDictionary.cs
- HtmlTernaryTree.cs
- ActivityExecutorOperation.cs
- UnsafeNativeMethods.cs
- ExpandButtonVisibilityConverter.cs
- HttpConfigurationSystem.cs
- EditingMode.cs
- XmlSchemaInclude.cs
- FormsAuthenticationEventArgs.cs
- CompilerError.cs
- ExtendedProperty.cs
- _PooledStream.cs