Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClauseCollection.cs / 1305376 / CodeCatchClauseCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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
- InteropAutomationProvider.cs
- RenderData.cs
- SerializationSectionGroup.cs
- MSG.cs
- ProxyGenerator.cs
- TextViewSelectionProcessor.cs
- WebPartAuthorizationEventArgs.cs
- Timer.cs
- ConstraintStruct.cs
- SafeSecurityHandles.cs
- DataRecordInternal.cs
- WindowsFormsSynchronizationContext.cs
- Part.cs
- Cursors.cs
- DCSafeHandle.cs
- AQNBuilder.cs
- MimeMapping.cs
- _AuthenticationState.cs
- XmlCharCheckingReader.cs
- GC.cs
- QilNode.cs
- COM2ExtendedTypeConverter.cs
- DataSvcMapFile.cs
- CodeDelegateCreateExpression.cs
- TemplateControl.cs
- JsonWriter.cs
- KeyValuePair.cs
- GestureRecognizer.cs
- DESCryptoServiceProvider.cs
- GraphicsPath.cs
- HttpInputStream.cs
- WorkflowApplicationCompletedEventArgs.cs
- Constants.cs
- NumberEdit.cs
- FontStretch.cs
- Module.cs
- TransformerConfigurationWizardBase.cs
- TextInfo.cs
- PinProtectionHelper.cs
- GridViewColumnHeader.cs
- SurrogateSelector.cs
- LinkButton.cs
- PrincipalPermission.cs
- SimpleMailWebEventProvider.cs
- CorePropertiesFilter.cs
- LocalizationParserHooks.cs
- XmlSignificantWhitespace.cs
- Transform3DGroup.cs
- DesignTimeSiteMapProvider.cs
- SqlDataReaderSmi.cs
- DocumentGrid.cs
- TerminatorSinks.cs
- ImageInfo.cs
- XmlSchemaParticle.cs
- KeySpline.cs
- ModelChangedEventArgsImpl.cs
- SqlCharStream.cs
- CustomCredentialPolicy.cs
- WebConfigurationFileMap.cs
- InvalidOperationException.cs
- GridErrorDlg.cs
- PropertyTabChangedEvent.cs
- FixedPageProcessor.cs
- ProfileProvider.cs
- StackSpiller.Bindings.cs
- UniformGrid.cs
- Int64.cs
- CommandEventArgs.cs
- ObjectDataProvider.cs
- ImageField.cs
- ExtensibleClassFactory.cs
- WorkflowPersistenceContext.cs
- ResizeBehavior.cs
- RemotingConfigParser.cs
- GridViewCommandEventArgs.cs
- Operand.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BitmapEffectDrawingContextState.cs
- TrustManagerMoreInformation.cs
- SafeNativeMethods.cs
- Expression.cs
- IsolatedStorageSecurityState.cs
- SslStream.cs
- NonVisualControlAttribute.cs
- Int32EqualityComparer.cs
- AssociationTypeEmitter.cs
- FormatterServices.cs
- InvalidProgramException.cs
- SchemaElementDecl.cs
- XmlSchemaAnnotated.cs
- PolicyChain.cs
- AlternateViewCollection.cs
- AddInPipelineAttributes.cs
- HttpProtocolReflector.cs
- InvokeWebServiceDesigner.cs
- PingReply.cs
- ObjectSelectorEditor.cs
- RichTextBoxAutomationPeer.cs
- CounterCreationDataCollection.cs