Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTryCatchFinallyStatement.cs / 1 / CodeTryCatchFinallyStatement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.CodeDom { using System.Diagnostics; using System; using Microsoft.Win32; using System.Collections; using System.Runtime.InteropServices; ////// Represents a try block, with any number of catch clauses and an /// optionally finally block. /// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTryCatchFinallyStatement : CodeStatement { private CodeStatementCollection tryStatments = new CodeStatementCollection(); private CodeStatementCollection finallyStatments = new CodeStatementCollection(); private CodeCatchClauseCollection catchClauses = new CodeCatchClauseCollection(); ////// public CodeTryCatchFinallyStatement() { } ////// Initializes a new instance of ///. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); } ////// Initializes a new instance of ///using the specified statements to try and catch /// clauses. /// /// public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) { TryStatements.AddRange(tryStatements); CatchClauses.AddRange(catchClauses); FinallyStatements.AddRange(finallyStatements); } ////// Initializes a new instance of ///using the specified statements to /// try, catch clauses, and finally statements. /// /// public CodeStatementCollection TryStatements { get { return tryStatments; } } ////// Gets or sets /// the try statements to try. /// ////// public CodeCatchClauseCollection CatchClauses { get { return catchClauses; } } ////// Gets or sets the catch clauses to use. /// ////// public CodeStatementCollection FinallyStatements { get { return finallyStatments; } } } }/// Gets or sets /// the finally statements to use. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActivityExecutor.cs
- Stream.cs
- DesignerForm.cs
- ServerValidateEventArgs.cs
- WindowsAuthenticationModule.cs
- TimeSpanConverter.cs
- IdentifierCreationService.cs
- EntityRecordInfo.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CodeNamespaceImportCollection.cs
- VoiceObjectToken.cs
- XmlSchemaComplexContentExtension.cs
- NativeMethods.cs
- FileRecordSequenceCompletedAsyncResult.cs
- CultureInfo.cs
- VisemeEventArgs.cs
- SoundPlayer.cs
- TreeNodeEventArgs.cs
- SimpleRecyclingCache.cs
- DataObjectFieldAttribute.cs
- PreProcessInputEventArgs.cs
- GridItem.cs
- PassportIdentity.cs
- ComNativeDescriptor.cs
- WebBrowser.cs
- Rfc2898DeriveBytes.cs
- NavigationProperty.cs
- HtmlLink.cs
- SubstitutionDesigner.cs
- CalendarDay.cs
- PolyLineSegment.cs
- OrderedDictionaryStateHelper.cs
- ParagraphVisual.cs
- BlockingCollection.cs
- ThicknessConverter.cs
- SendKeys.cs
- ProxyAttribute.cs
- UnsafeNativeMethods.cs
- EndEvent.cs
- EditorOptionAttribute.cs
- ToolStripOverflowButton.cs
- PackageRelationship.cs
- ToolStripDesignerUtils.cs
- TranslateTransform.cs
- XMLSyntaxException.cs
- GradientBrush.cs
- ClosableStream.cs
- DynamicILGenerator.cs
- ReliableSessionBindingElement.cs
- ListViewCommandEventArgs.cs
- XPathException.cs
- ToolStripGripRenderEventArgs.cs
- AnonymousIdentificationModule.cs
- MultiBinding.cs
- SelectedPathEditor.cs
- Speller.cs
- QilBinary.cs
- NonBatchDirectoryCompiler.cs
- ArgumentNullException.cs
- CannotUnloadAppDomainException.cs
- diagnosticsswitches.cs
- ImageIndexConverter.cs
- SecureStringHasher.cs
- WebPartCancelEventArgs.cs
- XmlSerializableServices.cs
- ImageBrush.cs
- LocalValueEnumerator.cs
- TokenCreationException.cs
- ToolStripPanelRenderEventArgs.cs
- TemplateEditingService.cs
- Transform3DGroup.cs
- List.cs
- cache.cs
- XslAstAnalyzer.cs
- StrokeFIndices.cs
- DataGridCheckBoxColumn.cs
- DataListItemEventArgs.cs
- RequestCacheManager.cs
- PerspectiveCamera.cs
- StrongBox.cs
- HttpContextServiceHost.cs
- JsonWriter.cs
- XmlCharacterData.cs
- CaseStatementProjectedSlot.cs
- ByteStream.cs
- PagerSettings.cs
- SimplePropertyEntry.cs
- GridViewRow.cs
- HttpServerVarsCollection.cs
- PaintValueEventArgs.cs
- PtsPage.cs
- EmbossBitmapEffect.cs
- PathSegment.cs
- UInt64Storage.cs
- OdbcConnectionStringbuilder.cs
- SinglePageViewer.cs
- SystemInformation.cs
- CheckedPointers.cs
- EmptyQuery.cs
- NetSectionGroup.cs