Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1 / CodeTypeDeclarationCollection.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 CodeTypeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeDeclaration this[int index] { get { return ((CodeTypeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeDeclaration 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 CodeTypeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeDeclaration this[int index] { get { return ((CodeTypeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeDeclaration 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
- DataGridViewCellValueEventArgs.cs
- CriticalFinalizerObject.cs
- SymbolDocumentInfo.cs
- EncryptedData.cs
- RoleManagerModule.cs
- TopClause.cs
- PerformanceCounterCategory.cs
- TraceData.cs
- GeneralTransform2DTo3D.cs
- DesignerTransactionCloseEvent.cs
- GcHandle.cs
- DesignerSerializerAttribute.cs
- DocumentOrderComparer.cs
- PrinterResolution.cs
- ModifyActivitiesPropertyDescriptor.cs
- TaskCanceledException.cs
- UntypedNullExpression.cs
- ThemeableAttribute.cs
- PolicyLevel.cs
- NotFiniteNumberException.cs
- XmlSchemaCompilationSettings.cs
- MediaElementAutomationPeer.cs
- XmlSchemaExporter.cs
- ConnectionStringSettingsCollection.cs
- Transform.cs
- FileCodeGroup.cs
- Repeater.cs
- _SslSessionsCache.cs
- BasicKeyConstraint.cs
- CircleEase.cs
- IntersectQueryOperator.cs
- ReadOnlyNameValueCollection.cs
- DataAccessException.cs
- SqlClientWrapperSmiStreamChars.cs
- DataObjectMethodAttribute.cs
- ExtendLockAsyncResult.cs
- Model3D.cs
- HandlerBase.cs
- FrameworkObject.cs
- Visual.cs
- FilterEventArgs.cs
- ConfigurationValue.cs
- QilChoice.cs
- ISSmlParser.cs
- SchemaElement.cs
- GregorianCalendarHelper.cs
- MobileResource.cs
- Attributes.cs
- SqlClientWrapperSmiStream.cs
- _NestedSingleAsyncResult.cs
- ListViewContainer.cs
- BulletedList.cs
- LateBoundBitmapDecoder.cs
- WriteLine.cs
- DbMetaDataColumnNames.cs
- SessionPageStatePersister.cs
- PersistenceParticipant.cs
- ExtendedTransformFactory.cs
- DateTimeParse.cs
- VisualStyleInformation.cs
- EventRecord.cs
- GeneralTransform3DTo2D.cs
- DesignerCategoryAttribute.cs
- MouseEvent.cs
- AssemblyAttributesGoHere.cs
- GrowingArray.cs
- Blend.cs
- StretchValidation.cs
- ZoneButton.cs
- MessageDroppedTraceRecord.cs
- DataControlFieldCell.cs
- LinqDataSourceUpdateEventArgs.cs
- SmtpReplyReaderFactory.cs
- TcpPortSharing.cs
- XXXOnTypeBuilderInstantiation.cs
- MissingMethodException.cs
- NegatedCellConstant.cs
- XmlSchemaSequence.cs
- ResourceLoader.cs
- SuppressMessageAttribute.cs
- HtmlSelectionListAdapter.cs
- FontFamily.cs
- RootDesignerSerializerAttribute.cs
- ToolStripSeparatorRenderEventArgs.cs
- IUnknownConstantAttribute.cs
- ASCIIEncoding.cs
- HtmlProps.cs
- HandlerBase.cs
- MemberPath.cs
- DefaultEventAttribute.cs
- XmlHelper.cs
- PropVariant.cs
- XmlSchemaCompilationSettings.cs
- ChtmlImageAdapter.cs
- DispatcherHooks.cs
- RectangleConverter.cs
- ItemList.cs
- SoapHeaderAttribute.cs
- SiteMembershipCondition.cs
- FrameworkElementAutomationPeer.cs