Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CustomTypeDescriptor.cs
- DataObjectCopyingEventArgs.cs
- BindingManagerDataErrorEventArgs.cs
- ArgumentNullException.cs
- WebSysDisplayNameAttribute.cs
- HandledEventArgs.cs
- ECDiffieHellman.cs
- SqlConnectionManager.cs
- LinkUtilities.cs
- MobileTemplatedControlDesigner.cs
- CompiledQuery.cs
- RuleSettingsCollection.cs
- SoapAttributeOverrides.cs
- DBPropSet.cs
- Selection.cs
- codemethodreferenceexpression.cs
- Expander.cs
- ToolStripContainerDesigner.cs
- TextRangeProviderWrapper.cs
- VectorAnimation.cs
- ConnectionPoint.cs
- cache.cs
- DictionaryGlobals.cs
- WorkItem.cs
- GenericFlowSwitchHelper.cs
- SendMailErrorEventArgs.cs
- URL.cs
- SQLSingleStorage.cs
- ButtonField.cs
- ContentPlaceHolder.cs
- SpeechRecognitionEngine.cs
- SoapServerMethod.cs
- GeneralTransform.cs
- DataControlFieldCollection.cs
- MenuItem.cs
- ObjectViewFactory.cs
- DataAdapter.cs
- DocumentReference.cs
- QueryStringHandler.cs
- SourceSwitch.cs
- X509RawDataKeyIdentifierClause.cs
- MetadataItemSerializer.cs
- CaseCqlBlock.cs
- TextSegment.cs
- Rijndael.cs
- FocusWithinProperty.cs
- WindowsSlider.cs
- LabelLiteral.cs
- ReflectionPermission.cs
- Rotation3DAnimationUsingKeyFrames.cs
- WindowsListViewScroll.cs
- DesignBindingConverter.cs
- ReverseInheritProperty.cs
- BaseDataBoundControl.cs
- MultipleViewPattern.cs
- FileDialogPermission.cs
- IsolatedStoragePermission.cs
- CheckBoxBaseAdapter.cs
- StylusSystemGestureEventArgs.cs
- RoutedCommand.cs
- XmlUnspecifiedAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SqlNotificationEventArgs.cs
- MgmtConfigurationRecord.cs
- OleServicesContext.cs
- ConfigXmlSignificantWhitespace.cs
- Boolean.cs
- List.cs
- SecurityUtils.cs
- ContentWrapperAttribute.cs
- LayoutTableCell.cs
- BezierSegment.cs
- EntityChangedParams.cs
- ReliabilityContractAttribute.cs
- ApplicationGesture.cs
- RawKeyboardInputReport.cs
- ColorTranslator.cs
- SurrogateSelector.cs
- MarshalDirectiveException.cs
- NumberFormatInfo.cs
- UInt16.cs
- UnsafeCollabNativeMethods.cs
- PeerIPHelper.cs
- SQLDateTimeStorage.cs
- UndoManager.cs
- ToolZone.cs
- ConfigXmlAttribute.cs
- SelectingProviderEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- GuidelineSet.cs
- BaseAsyncResult.cs
- BuildDependencySet.cs
- Animatable.cs
- URLString.cs
- ContainsRowNumberChecker.cs
- OnOperation.cs
- ServiceHttpHandlerFactory.cs
- Util.cs
- DeferredReference.cs
- ExpressionBuilder.cs