Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceCredentialsElement.cs
- JournalEntryListConverter.cs
- SchemaEntity.cs
- ComponentRenameEvent.cs
- MdiWindowListItemConverter.cs
- AttributeData.cs
- MethodExpr.cs
- SqlRecordBuffer.cs
- TraceContext.cs
- HwndSource.cs
- Merger.cs
- DataBoundLiteralControl.cs
- OleDbTransaction.cs
- DataSourceNameHandler.cs
- HtmlValidationSummaryAdapter.cs
- BaseCAMarshaler.cs
- OracleLob.cs
- SafeRightsManagementQueryHandle.cs
- WriteableOnDemandPackagePart.cs
- SafeMarshalContext.cs
- UpdateTracker.cs
- __ComObject.cs
- ObjectDataSourceView.cs
- TransformGroup.cs
- TextEffect.cs
- TimeSpanConverter.cs
- Section.cs
- InertiaTranslationBehavior.cs
- CreateUserWizardStep.cs
- PtsHost.cs
- DropShadowEffect.cs
- Image.cs
- FixedDocument.cs
- ValidationSummaryDesigner.cs
- XmlTextAttribute.cs
- HatchBrush.cs
- SecurityDocument.cs
- HttpListenerContext.cs
- WebZone.cs
- ObjectDataSourceView.cs
- COM2PropertyPageUITypeConverter.cs
- sitestring.cs
- RedirectionProxy.cs
- DataGridColumn.cs
- RepeaterItemCollection.cs
- XPathParser.cs
- XmlSchemaSimpleTypeUnion.cs
- SpecularMaterial.cs
- SafeArrayRankMismatchException.cs
- GB18030Encoding.cs
- WebRequestModulesSection.cs
- GroupStyle.cs
- Pkcs7Signer.cs
- SourceExpressionException.cs
- OptimalBreakSession.cs
- ApplicationServiceManager.cs
- CommonXSendMessage.cs
- OdbcInfoMessageEvent.cs
- SmtpReplyReaderFactory.cs
- CompositeFontInfo.cs
- HttpServerProtocol.cs
- StringUtil.cs
- SecurityAccessDeniedException.cs
- Avt.cs
- CryptoConfig.cs
- ExpressionBinding.cs
- HotSpotCollection.cs
- XDeferredAxisSource.cs
- ZipIOExtraField.cs
- WebBrowsableAttribute.cs
- PaperSource.cs
- DocumentReferenceCollection.cs
- ValueSerializerAttribute.cs
- ExceptionHandlerDesigner.cs
- HandledEventArgs.cs
- DataBoundControlAdapter.cs
- BridgeDataRecord.cs
- WebPartDescriptionCollection.cs
- WebBrowserEvent.cs
- RtfToXamlLexer.cs
- ObjectItemConventionAssemblyLoader.cs
- TemplateBindingExpression.cs
- SchemaSetCompiler.cs
- Themes.cs
- SQLCharsStorage.cs
- IdentitySection.cs
- ElementsClipboardData.cs
- SmtpTransport.cs
- SqlConnectionManager.cs
- BrowserCapabilitiesFactory.cs
- SvcMapFile.cs
- UnsafeNativeMethods.cs
- ConfigurationManager.cs
- Util.cs
- DataGridItem.cs
- NullableFloatAverageAggregationOperator.cs
- IFlowDocumentViewer.cs
- HideDisabledControlAdapter.cs
- DataGridColumnCollection.cs
- Size3DValueSerializer.cs