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
- FamilyMapCollection.cs
- SmtpLoginAuthenticationModule.cs
- BamlLocalizableResourceKey.cs
- DuplicateWaitObjectException.cs
- PersonalizationProviderCollection.cs
- ClonableStack.cs
- Vector3DCollection.cs
- RepeatBehavior.cs
- TrayIconDesigner.cs
- IdentityModelDictionary.cs
- DesignerAttributeInfo.cs
- DependencyObject.cs
- RuleSettings.cs
- PartialArray.cs
- DoubleStorage.cs
- SplineQuaternionKeyFrame.cs
- NetMsmqBinding.cs
- LocalFileSettingsProvider.cs
- CLSCompliantAttribute.cs
- CompilationUtil.cs
- WebContext.cs
- HtmlTernaryTree.cs
- BinaryReader.cs
- AsyncResult.cs
- PackageRelationshipSelector.cs
- UiaCoreApi.cs
- UnescapedXmlDiagnosticData.cs
- RowToFieldTransformer.cs
- WorkflowMarkupSerializerMapping.cs
- CallSiteHelpers.cs
- RTLAwareMessageBox.cs
- UnaryQueryOperator.cs
- ArcSegment.cs
- ResourceReader.cs
- AddIn.cs
- HostedAspNetEnvironment.cs
- Options.cs
- AuthenticationService.cs
- UnsafePeerToPeerMethods.cs
- Privilege.cs
- MenuItemBinding.cs
- WCFBuildProvider.cs
- PlatformCulture.cs
- OperationCanceledException.cs
- Point3DCollection.cs
- XPathDescendantIterator.cs
- StringAnimationUsingKeyFrames.cs
- VirtualizingStackPanel.cs
- SafeMarshalContext.cs
- InternalDuplexChannelFactory.cs
- Slider.cs
- MultipleViewProviderWrapper.cs
- VerificationAttribute.cs
- SessionPageStatePersister.cs
- HtmlInputReset.cs
- WinFormsUtils.cs
- ShaderEffect.cs
- ProgressBar.cs
- FreezableDefaultValueFactory.cs
- SiteMapNode.cs
- EventProviderClassic.cs
- FamilyMapCollection.cs
- CheckBoxFlatAdapter.cs
- PresentationTraceSources.cs
- DesignerSerializerAttribute.cs
- XmlQueryContext.cs
- CodeVariableReferenceExpression.cs
- MissingSatelliteAssemblyException.cs
- BreadCrumbTextConverter.cs
- CornerRadiusConverter.cs
- AudioDeviceOut.cs
- WindowsProgressbar.cs
- Point3D.cs
- MasterPageCodeDomTreeGenerator.cs
- GridViewColumnHeaderAutomationPeer.cs
- LogLogRecord.cs
- TransformDescriptor.cs
- Cloud.cs
- IDReferencePropertyAttribute.cs
- HtmlLabelAdapter.cs
- SHA1Managed.cs
- OracleEncoding.cs
- ToolStripDropDownClosingEventArgs.cs
- InstanceOwnerQueryResult.cs
- SqlConnection.cs
- SerializationStore.cs
- GridView.cs
- AccessorTable.cs
- Table.cs
- ConfigUtil.cs
- RuntimeArgumentHandle.cs
- SR.cs
- ResourcePart.cs
- ApplicationException.cs
- CalendarBlackoutDatesCollection.cs
- DropSource.cs
- UIPermission.cs
- XNameConverter.cs
- BitmapEffectGeneralTransform.cs
- CustomTypeDescriptor.cs