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
- TextBoxDesigner.cs
- ReferenceConverter.cs
- InvokeProviderWrapper.cs
- _NegotiateClient.cs
- RectangleHotSpot.cs
- ControlBuilderAttribute.cs
- SqlConnectionString.cs
- WebContext.cs
- XmlSchemaProviderAttribute.cs
- XmlNodeChangedEventArgs.cs
- HtmlTextViewAdapter.cs
- SuppressIldasmAttribute.cs
- Repeater.cs
- EmptyEnumerator.cs
- TreeViewImageKeyConverter.cs
- NetStream.cs
- CompilationLock.cs
- XamlReader.cs
- StaticDataManager.cs
- DetailsViewDeleteEventArgs.cs
- ComplexTypeEmitter.cs
- OdbcStatementHandle.cs
- DataGridTextBox.cs
- GeneralTransform3DTo2DTo3D.cs
- OnOperation.cs
- SingleStorage.cs
- TdsParserHelperClasses.cs
- HttpListenerRequest.cs
- ContainerParagraph.cs
- PickBranchDesigner.xaml.cs
- Message.cs
- SiteMembershipCondition.cs
- DateTimeConstantAttribute.cs
- WebPartsPersonalizationAuthorization.cs
- ChannelPool.cs
- BoundPropertyEntry.cs
- ChangeToolStripParentVerb.cs
- SourceFileBuildProvider.cs
- ObjectListFieldsPage.cs
- TemplateBuilder.cs
- InputReportEventArgs.cs
- GridItemCollection.cs
- IDispatchConstantAttribute.cs
- SamlDelegatingWriter.cs
- SchemaMerger.cs
- Propagator.cs
- XmlQueryOutput.cs
- DataGridViewButtonColumn.cs
- ErrorRuntimeConfig.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- AssemblyResourceLoader.cs
- TreeIterator.cs
- PageAdapter.cs
- LongTypeConverter.cs
- PriorityQueue.cs
- ProviderException.cs
- XmlSignatureManifest.cs
- ChildDocumentBlock.cs
- WebPartEditorCancelVerb.cs
- DEREncoding.cs
- DoubleAnimationUsingPath.cs
- StrongName.cs
- DiffuseMaterial.cs
- ConfigXmlText.cs
- HttpDictionary.cs
- UpdateManifestForBrowserApplication.cs
- AsyncCompletedEventArgs.cs
- HandleCollector.cs
- StylusPointPropertyUnit.cs
- TheQuery.cs
- ThemeInfoAttribute.cs
- ObjectStateFormatter.cs
- SQLByte.cs
- RegionData.cs
- ObjectItemConventionAssemblyLoader.cs
- ProgressBarBrushConverter.cs
- BufferAllocator.cs
- DataStorage.cs
- RegisterInfo.cs
- Encoder.cs
- PropertyManager.cs
- SlipBehavior.cs
- MeasureData.cs
- XmlIlGenerator.cs
- DelegateTypeInfo.cs
- AccessViolationException.cs
- DeviceSpecificDialogCachedState.cs
- TraceSection.cs
- TraceSwitch.cs
- DockingAttribute.cs
- SecureEnvironment.cs
- TextWriter.cs
- DocumentPageViewAutomationPeer.cs
- ColorPalette.cs
- ArithmeticException.cs
- ConstraintEnumerator.cs
- SafeSecurityHandles.cs
- ByteConverter.cs
- ScriptControlManager.cs
- BitStack.cs