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
- DataGridItem.cs
- FixedTextView.cs
- Hex.cs
- IgnoreFileBuildProvider.cs
- XmlnsPrefixAttribute.cs
- TrackingProfile.cs
- VisualTransition.cs
- CustomDictionarySources.cs
- SystemThemeKey.cs
- BufferedGenericXmlSecurityToken.cs
- DataControlCommands.cs
- ScriptControl.cs
- BitmapInitialize.cs
- HostProtectionPermission.cs
- CodeNamespaceImport.cs
- DependencyPropertyKey.cs
- EntityDesignerUtils.cs
- XmlSchemaIdentityConstraint.cs
- ConfigurationException.cs
- LinkArea.cs
- DataGridViewRowPostPaintEventArgs.cs
- TraceHandlerErrorFormatter.cs
- NullableDoubleSumAggregationOperator.cs
- EventProvider.cs
- EventToken.cs
- assemblycache.cs
- EngineSiteSapi.cs
- DomNameTable.cs
- CodeMemberMethod.cs
- ObjectDataSourceSelectingEventArgs.cs
- CodeMemberProperty.cs
- ListParaClient.cs
- SequenceDesigner.xaml.cs
- LinkDescriptor.cs
- ValueUtilsSmi.cs
- SecurityIdentifierElement.cs
- HTMLTextWriter.cs
- FocusTracker.cs
- FixedHighlight.cs
- XmlNodeComparer.cs
- CommandBindingCollection.cs
- DataServiceProviderWrapper.cs
- ObjectDesignerDataSourceView.cs
- MarshalByRefObject.cs
- BooleanToVisibilityConverter.cs
- LongAverageAggregationOperator.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- OutOfMemoryException.cs
- CustomActivityDesigner.cs
- QueryOperatorEnumerator.cs
- DocumentSequence.cs
- AutomationPropertyInfo.cs
- XmlElementCollection.cs
- InvalidCastException.cs
- CompositionAdorner.cs
- DeferredTextReference.cs
- StringUtil.cs
- XPathEmptyIterator.cs
- BoolExpression.cs
- WeakReferenceEnumerator.cs
- _NtlmClient.cs
- PackageRelationship.cs
- TransformerInfoCollection.cs
- XPathNodeIterator.cs
- NullableDoubleMinMaxAggregationOperator.cs
- TextPattern.cs
- XmlAttributeProperties.cs
- _SslState.cs
- HtmlEncodedRawTextWriter.cs
- CustomAttributeBuilder.cs
- ToolBarButtonClickEvent.cs
- ChainOfDependencies.cs
- GlobalizationAssembly.cs
- ServiceOperationUIEditor.cs
- CompilerResults.cs
- isolationinterop.cs
- SoapAttributes.cs
- DefaultBinder.cs
- ListViewTableRow.cs
- XmlSchemaException.cs
- WindowProviderWrapper.cs
- SEHException.cs
- CatalogZoneBase.cs
- Bits.cs
- MatrixUtil.cs
- EventLogTraceListener.cs
- ObjectDataSourceDisposingEventArgs.cs
- NamespaceEmitter.cs
- PlaceHolder.cs
- storepermission.cs
- DeadCharTextComposition.cs
- BindingWorker.cs
- CqlLexerHelpers.cs
- _AutoWebProxyScriptWrapper.cs
- ToolBarTray.cs
- KnownIds.cs
- Line.cs
- BooleanFunctions.cs
- URL.cs
- SafeFileMappingHandle.cs