Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClauseCollection.cs / 1 / CodeCatchClauseCollection.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 CodeCatchClauseCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeCatchClauseCollection() { } ////// Initializes a new instance of ///. /// /// public CodeCatchClauseCollection(CodeCatchClauseCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeCatchClauseCollection(CodeCatchClause[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeCatchClause this[int index] { get { return ((CodeCatchClause)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeCatchClause value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeCatchClause[] 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(CodeCatchClauseCollection 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(CodeCatchClause value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeCatchClause[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeCatchClause value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeCatchClause value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeCatchClause 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 CodeCatchClauseCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeCatchClauseCollection() { } ////// Initializes a new instance of ///. /// /// public CodeCatchClauseCollection(CodeCatchClauseCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeCatchClauseCollection(CodeCatchClause[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeCatchClause this[int index] { get { return ((CodeCatchClause)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeCatchClause value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeCatchClause[] 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(CodeCatchClauseCollection 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(CodeCatchClause value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeCatchClause[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeCatchClause value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeCatchClause value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeCatchClause 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
- Activator.cs
- RetrieveVirtualItemEventArgs.cs
- SpecialFolderEnumConverter.cs
- AddingNewEventArgs.cs
- FileNotFoundException.cs
- QilXmlReader.cs
- EntityProviderFactory.cs
- ProxyGenerationError.cs
- XmlWellformedWriter.cs
- HttpApplication.cs
- ApplicationSecurityInfo.cs
- RotateTransform3D.cs
- AstNode.cs
- PrtTicket_Editor.cs
- NullableDoubleSumAggregationOperator.cs
- FixUpCollection.cs
- WaitForChangedResult.cs
- WebPartTransformerAttribute.cs
- ToolStripPanelCell.cs
- IntSecurity.cs
- MessageDescription.cs
- DBDataPermissionAttribute.cs
- WsdlImporter.cs
- X509UI.cs
- CacheChildrenQuery.cs
- Token.cs
- RectangleConverter.cs
- XmlDictionaryReaderQuotas.cs
- SectionXmlInfo.cs
- SendMailErrorEventArgs.cs
- PieceDirectory.cs
- MaskDescriptors.cs
- PointHitTestResult.cs
- storepermission.cs
- __FastResourceComparer.cs
- AutoGeneratedField.cs
- ManagementScope.cs
- DataObjectSettingDataEventArgs.cs
- WebPartActionVerb.cs
- PolicyException.cs
- MissingManifestResourceException.cs
- Marshal.cs
- TemplateBindingExtension.cs
- WebPartVerbCollection.cs
- BookmarkUndoUnit.cs
- WebPart.cs
- LingerOption.cs
- ImageMap.cs
- WebPartConnectionsCancelVerb.cs
- HWStack.cs
- UserControl.cs
- IncomingWebRequestContext.cs
- XmlSchemaElement.cs
- ProfileSection.cs
- RangeValuePatternIdentifiers.cs
- SoapElementAttribute.cs
- ClientConfigPaths.cs
- ViewValidator.cs
- CompModSwitches.cs
- SimpleBitVector32.cs
- BooleanToVisibilityConverter.cs
- NullableDoubleMinMaxAggregationOperator.cs
- regiisutil.cs
- IisTraceListener.cs
- Asn1IntegerConverter.cs
- DropShadowBitmapEffect.cs
- UriTemplateTableMatchCandidate.cs
- TaiwanCalendar.cs
- PreservationFileReader.cs
- Process.cs
- InvokeHandlers.cs
- HttpHandlerActionCollection.cs
- EventData.cs
- CLSCompliantAttribute.cs
- InputQueueChannelAcceptor.cs
- Composition.cs
- CultureTableRecord.cs
- HttpAsyncResult.cs
- DiscoveryServiceExtension.cs
- ActivityInterfaces.cs
- Triangle.cs
- AutomationTextAttribute.cs
- LinqDataSource.cs
- XmlDocument.cs
- UrlMapping.cs
- XmlIlTypeHelper.cs
- KnownBoxes.cs
- FixedPageStructure.cs
- TemplatePartAttribute.cs
- DetailsViewDeletedEventArgs.cs
- EntityStoreSchemaGenerator.cs
- FlatButtonAppearance.cs
- StateDesigner.TransitionInfo.cs
- EmbeddedMailObjectsCollection.cs
- DataGridHeaderBorder.cs
- XsltLoader.cs
- ChtmlSelectionListAdapter.cs
- DBConcurrencyException.cs
- DocumentPage.cs
- ToolStripTextBox.cs