Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1 / CodeTypeMemberCollection.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 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); } } }Removes a specific ///from the /// .
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemeSettingElement.cs
- PixelFormat.cs
- UnsafeNativeMethods.cs
- ComponentCollection.cs
- BooleanStorage.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FlowDocumentFormatter.cs
- ClassDataContract.cs
- EntityParameter.cs
- Table.cs
- WindowsGraphicsWrapper.cs
- InboundActivityHelper.cs
- AssemblyNameUtility.cs
- AssemblyCollection.cs
- PackageStore.cs
- MruCache.cs
- StandardCommands.cs
- Tablet.cs
- TdsParserSessionPool.cs
- XmlIgnoreAttribute.cs
- KeyToListMap.cs
- SafeCryptoHandles.cs
- ObjectDataSourceMethodEditor.cs
- GifBitmapEncoder.cs
- Soap.cs
- InputBuffer.cs
- AssertValidation.cs
- FormView.cs
- CharAnimationUsingKeyFrames.cs
- FolderLevelBuildProviderCollection.cs
- CryptoHelper.cs
- glyphs.cs
- SerializationObjectManager.cs
- GridViewCommandEventArgs.cs
- TypeKeyValue.cs
- ResetableIterator.cs
- Simplifier.cs
- ObjectMemberMapping.cs
- MetadataWorkspace.cs
- ObjectManager.cs
- MenuAdapter.cs
- WebBrowser.cs
- DateTimeParse.cs
- SpecularMaterial.cs
- DataControlFieldCell.cs
- EditorZoneDesigner.cs
- SharedDp.cs
- DynamicDocumentPaginator.cs
- DataGridHeaderBorder.cs
- COM2TypeInfoProcessor.cs
- AdapterDictionary.cs
- VisualBasicSettingsHandler.cs
- GlobalizationSection.cs
- ChineseLunisolarCalendar.cs
- SQLByteStorage.cs
- CheckedPointers.cs
- CodeDirectiveCollection.cs
- TemplateBamlTreeBuilder.cs
- XamlGridLengthSerializer.cs
- ConnectionInterfaceCollection.cs
- PartialTrustVisibleAssemblyCollection.cs
- FamilyCollection.cs
- Rijndael.cs
- PathGeometry.cs
- ObjectConverter.cs
- BaseUriHelper.cs
- TreeChangeInfo.cs
- RichTextBoxConstants.cs
- BinaryParser.cs
- HttpCapabilitiesEvaluator.cs
- SmtpTransport.cs
- Variable.cs
- Attribute.cs
- LeaseManager.cs
- MobileRedirect.cs
- PasswordRecoveryDesigner.cs
- WindowsScrollBar.cs
- smtpconnection.cs
- LogAppendAsyncResult.cs
- TreeNode.cs
- EventLogTraceListener.cs
- ToolStripItemCollection.cs
- DmlSqlGenerator.cs
- StringInfo.cs
- WebScriptEnablingBehavior.cs
- BamlResourceDeserializer.cs
- StringUtil.cs
- ExtractorMetadata.cs
- ApplicationBuildProvider.cs
- CreatingCookieEventArgs.cs
- ConfigurationStrings.cs
- CallbackValidatorAttribute.cs
- RefreshEventArgs.cs
- SuppressIldasmAttribute.cs
- NotImplementedException.cs
- WebPartsPersonalization.cs
- WmlValidatorAdapter.cs
- CategoryAttribute.cs
- DataBinder.cs
- MetaChildrenColumn.cs