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
- BinaryExpressionHelper.cs
- DataFormats.cs
- CustomSignedXml.cs
- SerializerProvider.cs
- LineSegment.cs
- TraceUtility.cs
- PageBreakRecord.cs
- ValueType.cs
- DataBindingHandlerAttribute.cs
- MbpInfo.cs
- QuaternionConverter.cs
- OrderingExpression.cs
- PolicyException.cs
- PublisherIdentityPermission.cs
- Splitter.cs
- RecordManager.cs
- ContainerSelectorActiveEvent.cs
- XmlException.cs
- RawStylusInputCustomDataList.cs
- CustomSignedXml.cs
- SafeSystemMetrics.cs
- ReadOnlyDataSource.cs
- ReferentialConstraintRoleElement.cs
- QuadraticEase.cs
- FrameworkContentElement.cs
- BindingGroup.cs
- HtmlInputButton.cs
- InternalRelationshipCollection.cs
- GlobalProxySelection.cs
- DrawingState.cs
- ZoneIdentityPermission.cs
- PrintPreviewGraphics.cs
- BookmarkInfo.cs
- TypeBrowserDialog.cs
- FlowchartDesignerCommands.cs
- DocComment.cs
- QuinticEase.cs
- SamlSecurityTokenAuthenticator.cs
- XmlParserContext.cs
- DynamicEndpointElement.cs
- EdmItemError.cs
- ColorAnimationUsingKeyFrames.cs
- EventHandlers.cs
- DataBinder.cs
- DbConnectionInternal.cs
- SiteMapSection.cs
- Bits.cs
- ListControl.cs
- EmptyControlCollection.cs
- IArgumentProvider.cs
- PlaceHolder.cs
- IndexedEnumerable.cs
- WorkflowPrinting.cs
- TouchDevice.cs
- KeyToListMap.cs
- InvokeHandlers.cs
- LogicalTreeHelper.cs
- UriSectionData.cs
- WebPartDeleteVerb.cs
- namescope.cs
- Control.cs
- AssemblyBuilderData.cs
- Exceptions.cs
- TextSelectionHelper.cs
- NodeFunctions.cs
- RegexRunnerFactory.cs
- InternalConfigSettingsFactory.cs
- ListViewGroup.cs
- Int16KeyFrameCollection.cs
- DoubleKeyFrameCollection.cs
- XmlSchemaCollection.cs
- TemplateContentLoader.cs
- IntSecurity.cs
- CacheDependency.cs
- DataGridColumnHeaderCollection.cs
- XmlSiteMapProvider.cs
- UserUseLicenseDictionaryLoader.cs
- MdImport.cs
- ImageConverter.cs
- HtmlTable.cs
- SecurityElement.cs
- CharConverter.cs
- PenThread.cs
- SqlProviderServices.cs
- SessionStateSection.cs
- GAC.cs
- DrawingState.cs
- XmlSchemaAttributeGroupRef.cs
- ListBoxItemWrapperAutomationPeer.cs
- KoreanCalendar.cs
- _IPv6Address.cs
- ELinqQueryState.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- FrameworkTextComposition.cs
- HtmlInputText.cs
- DataGridViewIntLinkedList.cs
- DirectoryObjectSecurity.cs
- IntPtr.cs
- PropertyTabChangedEvent.cs
- WsdlBuildProvider.cs