Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1305376 / CodeTypeMemberCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeMemberCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeMemberCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeMemberCollection(CodeTypeMemberCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeMemberCollection(CodeTypeMember[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeMember this[int index] { get { return ((CodeTypeMember)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeMember value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeMember[] 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(CodeTypeMemberCollection 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(CodeTypeMember value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeMember[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeMember value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeMember value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeMember value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebBrowserNavigatedEventHandler.cs
- PolicyException.cs
- AuthenticationSection.cs
- SettingsPropertyValue.cs
- LicenseProviderAttribute.cs
- Property.cs
- ParameterToken.cs
- XmlNodeChangedEventManager.cs
- DataGridViewCellStyle.cs
- EntryWrittenEventArgs.cs
- StrokeNodeOperations.cs
- UrlMappingCollection.cs
- MaskedTextBox.cs
- AutomationProperty.cs
- AsyncResult.cs
- Command.cs
- SoapHeader.cs
- TraceData.cs
- Latin1Encoding.cs
- InternalSafeNativeMethods.cs
- Assign.cs
- ConstantExpression.cs
- PackageDigitalSignature.cs
- DocumentReference.cs
- DocumentApplicationJournalEntry.cs
- NetworkStream.cs
- InteropAutomationProvider.cs
- SecurityHeaderLayout.cs
- TypeDescriptionProvider.cs
- OciEnlistContext.cs
- ExpressionsCollectionConverter.cs
- CircleEase.cs
- BindingManagerDataErrorEventArgs.cs
- ApplicationManager.cs
- FormsAuthenticationEventArgs.cs
- GradientBrush.cs
- remotingproxy.cs
- ThemeDictionaryExtension.cs
- TreeBuilderBamlTranslator.cs
- RotateTransform3D.cs
- FunctionDetailsReader.cs
- webclient.cs
- SafeArchiveContext.cs
- SynchronousChannel.cs
- BaseServiceProvider.cs
- ScalarRestriction.cs
- CompiledQuery.cs
- ResXResourceWriter.cs
- AdapterDictionary.cs
- InvalidComObjectException.cs
- FrameworkElement.cs
- TitleStyle.cs
- EmptyStringExpandableObjectConverter.cs
- XmlDocument.cs
- DataServiceQueryException.cs
- ResourcesGenerator.cs
- TreeIterator.cs
- ProxyGenerationError.cs
- StorageModelBuildProvider.cs
- HttpModuleAction.cs
- MetabaseServerConfig.cs
- ExtensionDataReader.cs
- ScriptReferenceEventArgs.cs
- ScalarOps.cs
- TextEndOfLine.cs
- Timeline.cs
- TextServicesPropertyRanges.cs
- Util.cs
- AnimationException.cs
- SoapReflectionImporter.cs
- UriSection.cs
- TabItem.cs
- XmlSecureResolver.cs
- DbReferenceCollection.cs
- XmlUTF8TextReader.cs
- RelationshipSet.cs
- DefaultPrintController.cs
- KeyboardEventArgs.cs
- XmlSchemaException.cs
- DirectoryInfo.cs
- ExpandableObjectConverter.cs
- HttpRuntimeSection.cs
- MailMessageEventArgs.cs
- OracleInternalConnection.cs
- ReadingWritingEntityEventArgs.cs
- CorrelationManager.cs
- CounterSample.cs
- RangeValuePatternIdentifiers.cs
- BypassElementCollection.cs
- XmlSchemaInfo.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- Bidi.cs
- PassportAuthenticationEventArgs.cs
- FormatterServices.cs
- LogEntryHeaderSerializer.cs
- WebPartHeaderCloseVerb.cs
- FormClosingEvent.cs
- MultiBinding.cs
- SqlDataRecord.cs
- PointAnimationBase.cs