Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceCollection.cs / 1 / CodeTypeReferenceCollection.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 CodeTypeReferenceCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeReferenceCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeReferenceCollection(CodeTypeReferenceCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeReferenceCollection(CodeTypeReference[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeReference this[int index] { get { return ((CodeTypeReference)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeReference value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void Add(string value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void Add(Type value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void AddRange(CodeTypeReference[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///Copies the elements of an array to the end of the ///. /// public void AddRange(CodeTypeReferenceCollection 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]); } } ////// Adds the contents of another ///to the end of the collection. /// /// public bool Contains(CodeTypeReference value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeReference[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeReference value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeReference value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeReference value) { List.Remove(value); } } }Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ParsedAttributeCollection.cs
- Configuration.cs
- RoleGroup.cs
- Material.cs
- FormsAuthenticationCredentials.cs
- NameTable.cs
- TextRange.cs
- DataGridTextBox.cs
- Animatable.cs
- HtmlInputReset.cs
- DataSourceXmlSubItemAttribute.cs
- IdentityHolder.cs
- Constants.cs
- ControlBuilderAttribute.cs
- CreateUserWizardDesigner.cs
- XmlWrappingReader.cs
- SchemaCollectionCompiler.cs
- dbenumerator.cs
- IdentityModelStringsVersion1.cs
- SystemEvents.cs
- SortedList.cs
- TempEnvironment.cs
- XamlStackWriter.cs
- DragDeltaEventArgs.cs
- DesignerOptionService.cs
- SignedInfo.cs
- QueryContinueDragEventArgs.cs
- TextEditorDragDrop.cs
- OverrideMode.cs
- XmlReflectionMember.cs
- DisplayInformation.cs
- TableRowGroup.cs
- IntMinMaxAggregationOperator.cs
- List.cs
- PrivacyNoticeBindingElement.cs
- ControlValuePropertyAttribute.cs
- SecurityElementBase.cs
- ElementAction.cs
- BamlResourceDeserializer.cs
- SafeRegistryHandle.cs
- AliasExpr.cs
- DiscoveryDocumentSerializer.cs
- OwnerDrawPropertyBag.cs
- TaskCanceledException.cs
- WebPart.cs
- basevalidator.cs
- DbConnectionStringCommon.cs
- MemberRelationshipService.cs
- WindowsListViewGroupSubsetLink.cs
- XPathScanner.cs
- WebPartMinimizeVerb.cs
- AlignmentXValidation.cs
- ErrorHandler.cs
- WindowsNonControl.cs
- TaskHelper.cs
- DialogResultConverter.cs
- MessageLoggingFilterTraceRecord.cs
- HelpKeywordAttribute.cs
- SmtpFailedRecipientsException.cs
- ObfuscationAttribute.cs
- DataObjectSettingDataEventArgs.cs
- DesignerVerbCollection.cs
- Set.cs
- DataBinding.cs
- XmlStrings.cs
- BindingOperations.cs
- COM2Enum.cs
- XmlBindingWorker.cs
- ZoneIdentityPermission.cs
- SettingsAttributeDictionary.cs
- SortQueryOperator.cs
- HttpCacheVary.cs
- MarkupCompiler.cs
- DataObjectSettingDataEventArgs.cs
- Baml6Assembly.cs
- BufferedResponseStream.cs
- Partitioner.cs
- MenuStrip.cs
- RegexFCD.cs
- NativeMethods.cs
- List.cs
- PackUriHelper.cs
- DeviceSpecific.cs
- IndexOutOfRangeException.cs
- XmlNode.cs
- TreeViewHitTestInfo.cs
- SortedDictionary.cs
- ReflectEventDescriptor.cs
- PointHitTestParameters.cs
- FontSourceCollection.cs
- FileSystemWatcher.cs
- XPathNavigatorReader.cs
- ContractDescription.cs
- CompositeControl.cs
- SqlBulkCopyColumnMappingCollection.cs
- VectorAnimation.cs
- XmlImplementation.cs
- AuthorizationSection.cs
- SafeNativeMethods.cs
- InstanceCreationEditor.cs