Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UrlAuthorizationModule.cs
- ReflectPropertyDescriptor.cs
- DynamicMethod.cs
- DeadCharTextComposition.cs
- Interlocked.cs
- KeyEventArgs.cs
- SqlGenericUtil.cs
- DBProviderConfigurationHandler.cs
- SelectionPattern.cs
- TextTreeText.cs
- XmlSchemaImporter.cs
- Package.cs
- IisTraceWebEventProvider.cs
- CalendarTable.cs
- Missing.cs
- SelectionRange.cs
- exports.cs
- DbConnectionOptions.cs
- DataGridTable.cs
- UnicodeEncoding.cs
- ConstantExpression.cs
- TextTreeObjectNode.cs
- ConfigXmlSignificantWhitespace.cs
- AutomationTextAttribute.cs
- oledbconnectionstring.cs
- DateTimeValueSerializer.cs
- XmlSchemaAttributeGroupRef.cs
- HttpRequest.cs
- DbReferenceCollection.cs
- TypeName.cs
- Token.cs
- WebHostScriptMappingsInstallComponent.cs
- XmlEntity.cs
- MenuItemStyleCollection.cs
- XamlStyleSerializer.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- ClassicBorderDecorator.cs
- TraceRecord.cs
- ColumnPropertiesGroup.cs
- WorkBatch.cs
- ChannelPoolSettings.cs
- DataControlPagerLinkButton.cs
- WebConfigurationHostFileChange.cs
- RequestCachingSection.cs
- OleServicesContext.cs
- TextDecorationCollectionConverter.cs
- BoundsDrawingContextWalker.cs
- UnauthorizedWebPart.cs
- localization.cs
- ExpandableObjectConverter.cs
- GroupStyle.cs
- ListItemCollection.cs
- documentation.cs
- XmlValidatingReader.cs
- DataSourceView.cs
- AvTraceDetails.cs
- WebPartConnectionsCancelVerb.cs
- GetTokenRequest.cs
- FontCollection.cs
- Rule.cs
- XmlSchemaAppInfo.cs
- ListViewItem.cs
- SchemaImporterExtensionElement.cs
- Stream.cs
- RuntimeConfigLKG.cs
- DataServiceProcessingPipelineEventArgs.cs
- ResXBuildProvider.cs
- PeerTransportCredentialType.cs
- ToolStripContainer.cs
- TextElementEnumerator.cs
- exports.cs
- UIElement3DAutomationPeer.cs
- GlobalProxySelection.cs
- DtrList.cs
- TrackingProfileDeserializationException.cs
- Int32Storage.cs
- OleStrCAMarshaler.cs
- ProgressiveCrcCalculatingStream.cs
- HandlerBase.cs
- PrefixHandle.cs
- ConnectionManagementElement.cs
- XmlDownloadManager.cs
- LastQueryOperator.cs
- CustomValidator.cs
- AjaxFrameworkAssemblyAttribute.cs
- BinaryFormatter.cs
- Margins.cs
- WebScriptServiceHostFactory.cs
- ByteFacetDescriptionElement.cs
- ButtonBaseAutomationPeer.cs
- SamlSubject.cs
- TextTreeDeleteContentUndoUnit.cs
- DataAdapter.cs
- DecimalFormatter.cs
- CrossSiteScriptingValidation.cs
- FontInfo.cs
- XsltLoader.cs
- EntityException.cs
- Maps.cs
- InvalidFilterCriteriaException.cs