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
- PropertyItemInternal.cs
- SettingsPropertyNotFoundException.cs
- ScrollData.cs
- ImportContext.cs
- CodeActivity.cs
- CompiledIdentityConstraint.cs
- DataGridColumnReorderingEventArgs.cs
- ProfessionalColors.cs
- SchemaTypeEmitter.cs
- DataSourceViewSchemaConverter.cs
- RoleService.cs
- MailDefinition.cs
- UserPersonalizationStateInfo.cs
- Int16AnimationUsingKeyFrames.cs
- Timer.cs
- RadioButton.cs
- SoapInteropTypes.cs
- Membership.cs
- _ProxyChain.cs
- TypeInfo.cs
- MenuItemCollection.cs
- OracleBFile.cs
- ErrorHandler.cs
- CurrentTimeZone.cs
- GCHandleCookieTable.cs
- TextFormatter.cs
- AppSettingsSection.cs
- TracingConnection.cs
- DefaultParameterValueAttribute.cs
- PointLightBase.cs
- HashAlgorithm.cs
- XmlAnyAttributeAttribute.cs
- PageAsyncTaskManager.cs
- Configuration.cs
- DataColumnMappingCollection.cs
- ValidationVisibilityAttribute.cs
- AddInBase.cs
- ImageCodecInfo.cs
- SystemColors.cs
- DocumentSequenceHighlightLayer.cs
- AddInStore.cs
- ApplyImportsAction.cs
- PeerNameRecord.cs
- MenuItem.cs
- OleDbDataReader.cs
- JoinQueryOperator.cs
- MenuItemBindingCollection.cs
- OdbcConnection.cs
- TableLayoutSettingsTypeConverter.cs
- StickyNoteHelper.cs
- LoadItemsEventArgs.cs
- SecUtil.cs
- MethodCallConverter.cs
- TabControl.cs
- Transform3D.cs
- WorkflowPersistenceService.cs
- InvalidProgramException.cs
- XPathNavigatorKeyComparer.cs
- XhtmlBasicPhoneCallAdapter.cs
- TreeViewCancelEvent.cs
- TreeViewAutomationPeer.cs
- SizeAnimation.cs
- ReceiveCompletedEventArgs.cs
- ClientTargetSection.cs
- ButtonBase.cs
- CallbackHandler.cs
- DocumentPageView.cs
- View.cs
- ReachSerializer.cs
- SplashScreenNativeMethods.cs
- ContextMenu.cs
- SQLMembershipProvider.cs
- TextureBrush.cs
- ByteRangeDownloader.cs
- WorkflowServiceHost.cs
- TextElementCollectionHelper.cs
- XamlPathDataSerializer.cs
- RequiredFieldValidator.cs
- DocumentSchemaValidator.cs
- RadioButtonBaseAdapter.cs
- ViewManager.cs
- CryptoKeySecurity.cs
- FormDesigner.cs
- HostExecutionContextManager.cs
- CodeExpressionStatement.cs
- ThreadNeutralSemaphore.cs
- RelationshipEnd.cs
- EndpointIdentity.cs
- JournalEntryListConverter.cs
- ParallelTimeline.cs
- WebRequestModuleElementCollection.cs
- OleDbSchemaGuid.cs
- Point3DKeyFrameCollection.cs
- DynamicRendererThreadManager.cs
- ConnectionStringSettings.cs
- WindowsGraphics2.cs
- ActivityIdHeader.cs
- TdsParser.cs
- ConfigurationPropertyAttribute.cs
- TextBlock.cs