Code:
/ DotNET / DotNET / 8.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
- InvalidProgramException.cs
- BitmapFrameDecode.cs
- PairComparer.cs
- Int32RectConverter.cs
- ContainerSelectorBehavior.cs
- InternalConfigRoot.cs
- CheckBox.cs
- ProfileGroupSettings.cs
- FixedHighlight.cs
- FullTrustAssembly.cs
- ServiceReflector.cs
- VisualBasicSettingsConverter.cs
- TraceRecord.cs
- ResourceAttributes.cs
- IncrementalCompileAnalyzer.cs
- CompiledXpathExpr.cs
- AsyncPostBackErrorEventArgs.cs
- PenCursorManager.cs
- XmlSignatureManifest.cs
- SortedList.cs
- DocComment.cs
- PackagePartCollection.cs
- GrammarBuilderWildcard.cs
- CodeMemberField.cs
- Html32TextWriter.cs
- ConfigurationLocation.cs
- ByteBufferPool.cs
- ErrorEventArgs.cs
- SerializableAttribute.cs
- ResourceDescriptionAttribute.cs
- SqlDataSourceConfigureSelectPanel.cs
- BufferedOutputStream.cs
- DispatcherHookEventArgs.cs
- InputLanguageSource.cs
- Animatable.cs
- WmiPutTraceRecord.cs
- ArrangedElementCollection.cs
- DefaultProxySection.cs
- NegotiateStream.cs
- HorizontalAlignConverter.cs
- unsafeIndexingFilterStream.cs
- TransformerInfoCollection.cs
- CompositionAdorner.cs
- ComplexObject.cs
- RoleManagerSection.cs
- UserValidatedEventArgs.cs
- ProviderSettings.cs
- Message.cs
- Wizard.cs
- JsonFormatGeneratorStatics.cs
- SimpleWebHandlerParser.cs
- EnlistmentTraceIdentifier.cs
- TextContainerChangeEventArgs.cs
- StateMachineDesignerPaint.cs
- DesignerActionVerbList.cs
- XD.cs
- SortQuery.cs
- ApplicationHost.cs
- TrimSurroundingWhitespaceAttribute.cs
- ZipFileInfo.cs
- DocumentReferenceCollection.cs
- WebPartCloseVerb.cs
- OdbcReferenceCollection.cs
- ActivityUtilities.cs
- AxisAngleRotation3D.cs
- XmlBufferReader.cs
- TextBoxAutoCompleteSourceConverter.cs
- BamlBinaryReader.cs
- XmlILCommand.cs
- SpeechSynthesizer.cs
- StickyNote.cs
- ToolStripPanel.cs
- DatePickerTextBox.cs
- sortedlist.cs
- InternalBase.cs
- HMAC.cs
- ServiceObjectContainer.cs
- TemplateInstanceAttribute.cs
- BaseComponentEditor.cs
- SendKeys.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ErrorView.xaml.cs
- COM2ExtendedTypeConverter.cs
- WebServiceHostFactory.cs
- RoutedEventArgs.cs
- CryptoApi.cs
- CFStream.cs
- CryptoConfig.cs
- DataRecord.cs
- XmlDataProvider.cs
- DispatcherFrame.cs
- Scheduling.cs
- SimplePropertyEntry.cs
- DiagnosticsConfiguration.cs
- shaper.cs
- FamilyTypeface.cs
- ObjectViewListener.cs
- EventMappingSettings.cs
- DataGridViewTopRowAccessibleObject.cs
- XsltFunctions.cs