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 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //Removes a specific ///from the /// . // 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); } } } // 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
- DataTransferEventArgs.cs
- JsonObjectDataContract.cs
- DropTarget.cs
- NativeMethods.cs
- SourceChangedEventArgs.cs
- DataListItem.cs
- PackageFilter.cs
- AuthenticationServiceManager.cs
- Activator.cs
- BitmapEffectInputData.cs
- ConfigXmlAttribute.cs
- FormatException.cs
- MetabaseSettings.cs
- WindowsBrush.cs
- ProcessManager.cs
- AlgoModule.cs
- Comparer.cs
- ValidationResult.cs
- CodeValidator.cs
- AvTraceDetails.cs
- embossbitmapeffect.cs
- HttpBufferlessInputStream.cs
- CalloutQueueItem.cs
- ElementInit.cs
- SafeEventLogReadHandle.cs
- _SslSessionsCache.cs
- ModelItemDictionary.cs
- StorageEntityTypeMapping.cs
- PhysicalOps.cs
- SymbolDocumentInfo.cs
- DependencyObjectCodeDomSerializer.cs
- XsdBuilder.cs
- XmlIlVisitor.cs
- SqlMultiplexer.cs
- SiblingIterators.cs
- NativeMethods.cs
- DataControlPagerLinkButton.cs
- ReliableSessionBindingElement.cs
- XmlSignatureManifest.cs
- ObjectStateManagerMetadata.cs
- COM2AboutBoxPropertyDescriptor.cs
- HandlerBase.cs
- ReaderWriterLock.cs
- PersonalizablePropertyEntry.cs
- HashMembershipCondition.cs
- ListViewUpdateEventArgs.cs
- GcHandle.cs
- RuntimeConfigurationRecord.cs
- GeneralTransform2DTo3D.cs
- FileSecurity.cs
- cookiecollection.cs
- StylusPointDescription.cs
- SecureEnvironment.cs
- GridViewCommandEventArgs.cs
- LogRestartAreaEnumerator.cs
- ContractNamespaceAttribute.cs
- FileDialog_Vista.cs
- DisableDpiAwarenessAttribute.cs
- DataGridViewToolTip.cs
- AppearanceEditorPart.cs
- TypeUtil.cs
- FieldNameLookup.cs
- OpCopier.cs
- ApplicationSecurityManager.cs
- QilPatternFactory.cs
- ScaleTransform.cs
- KeyValueConfigurationCollection.cs
- DataGridBeginningEditEventArgs.cs
- AsmxEndpointPickerExtension.cs
- AssemblyAttributes.cs
- XmlReflectionImporter.cs
- ColorConvertedBitmapExtension.cs
- SqlWorkflowInstanceStore.cs
- Cursor.cs
- XmlSerializationGeneratedCode.cs
- CompilationRelaxations.cs
- __FastResourceComparer.cs
- PartialTrustVisibleAssembly.cs
- QilReference.cs
- StringDictionaryEditor.cs
- XamlReader.cs
- TagPrefixCollection.cs
- UIElementIsland.cs
- WaitHandle.cs
- CLRBindingWorker.cs
- WhiteSpaceTrimStringConverter.cs
- AnnotationComponentChooser.cs
- ListViewTableCell.cs
- StorageComplexTypeMapping.cs
- StorageMappingFragment.cs
- AttachedPropertyMethodSelector.cs
- TreeNodeEventArgs.cs
- AxHostDesigner.cs
- HeaderLabel.cs
- WebPartDeleteVerb.cs
- IteratorAsyncResult.cs
- MD5Cng.cs
- WebGetAttribute.cs
- SmiRecordBuffer.cs
- RelOps.cs