Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AppDomain.cs
- PageAdapter.cs
- ETagAttribute.cs
- ReferenceEqualityComparer.cs
- ComponentCodeDomSerializer.cs
- ValidatorCompatibilityHelper.cs
- FlowDocumentPage.cs
- DeleteCardRequest.cs
- PersonalizationEntry.cs
- CheckBoxStandardAdapter.cs
- XmlAutoDetectWriter.cs
- LongValidator.cs
- DeclaredTypeValidatorAttribute.cs
- VerticalAlignConverter.cs
- HttpPostServerProtocol.cs
- FileDialogPermission.cs
- XpsSerializationManager.cs
- UdpRetransmissionSettings.cs
- ToolStripArrowRenderEventArgs.cs
- X509ScopedServiceCertificateElementCollection.cs
- XmlAnyAttributeAttribute.cs
- ButtonChrome.cs
- TabControlAutomationPeer.cs
- FilterableAttribute.cs
- X509ChainPolicy.cs
- ConfigurationPropertyCollection.cs
- Slider.cs
- ProvideValueServiceProvider.cs
- MessageQueueTransaction.cs
- SectionVisual.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- HashAlgorithm.cs
- DropSource.cs
- IOException.cs
- ExtentJoinTreeNode.cs
- DeclarativeConditionsCollection.cs
- ScriptingAuthenticationServiceSection.cs
- Timer.cs
- PerfCounterSection.cs
- XPathParser.cs
- GroupBox.cs
- Transform.cs
- SafeLibraryHandle.cs
- CursorConverter.cs
- ClientViaElement.cs
- XmlSchemaSimpleType.cs
- arc.cs
- ProxyWebPart.cs
- SortQuery.cs
- UserControl.cs
- FixedSchema.cs
- CodeTypeParameter.cs
- webbrowsersite.cs
- FlowchartDesignerCommands.cs
- ConfigurationLockCollection.cs
- JobStaple.cs
- PixelFormatConverter.cs
- Pair.cs
- ThicknessConverter.cs
- ControlBuilderAttribute.cs
- HierarchicalDataBoundControlAdapter.cs
- ColorConverter.cs
- SQLMoneyStorage.cs
- EntryPointNotFoundException.cs
- Transform.cs
- PropertyAccessVisitor.cs
- XmlQuerySequence.cs
- MetaModel.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- CodeMemberMethod.cs
- TemplateControlBuildProvider.cs
- TemplateBindingExtensionConverter.cs
- XslVisitor.cs
- HtmlMeta.cs
- BitmapEffectvisualstate.cs
- GridViewDeletedEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- RMEnrollmentPage2.cs
- XmlAttributeOverrides.cs
- UrlMappingCollection.cs
- SystemInfo.cs
- FrameworkRichTextComposition.cs
- StorageComplexPropertyMapping.cs
- ArrayExtension.cs
- AuthorizationRule.cs
- EventProviderBase.cs
- HtmlInputSubmit.cs
- Collection.cs
- StateMachine.cs
- XPathArrayIterator.cs
- HttpServerUtilityWrapper.cs
- ToggleProviderWrapper.cs
- AbstractDataSvcMapFileLoader.cs
- SerializationFieldInfo.cs
- Int32Rect.cs
- StandardToolWindows.cs
- basenumberconverter.cs
- MissingSatelliteAssemblyException.cs
- MemberCollection.cs
- QilReplaceVisitor.cs