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
- RIPEMD160.cs
- DebugHandleTracker.cs
- ObservableCollection.cs
- ButtonBaseAutomationPeer.cs
- BasePropertyDescriptor.cs
- TransformationRules.cs
- XXXOnTypeBuilderInstantiation.cs
- ReflectEventDescriptor.cs
- MailDefinitionBodyFileNameEditor.cs
- MDIControlStrip.cs
- APCustomTypeDescriptor.cs
- XPathScanner.cs
- PropertyMetadata.cs
- CharEnumerator.cs
- QueryCursorEventArgs.cs
- WebPartTracker.cs
- versioninfo.cs
- RenderTargetBitmap.cs
- LayoutEngine.cs
- EllipseGeometry.cs
- StrokeSerializer.cs
- InputLanguageSource.cs
- StringWriter.cs
- EarlyBoundInfo.cs
- _ProxyRegBlob.cs
- WebServiceParameterData.cs
- Marshal.cs
- SignedXml.cs
- XmlDataDocument.cs
- BaseCollection.cs
- TableParaClient.cs
- XhtmlBasicCalendarAdapter.cs
- Size3D.cs
- ModelPropertyDescriptor.cs
- CategoryNameCollection.cs
- ResourceIDHelper.cs
- FocusChangedEventArgs.cs
- TreeViewCancelEvent.cs
- ResourceLoader.cs
- CodeNamespaceImportCollection.cs
- DrawingGroup.cs
- EncoderReplacementFallback.cs
- RootProfilePropertySettingsCollection.cs
- PersistenceProviderDirectory.cs
- ExpressionEditorAttribute.cs
- SignatureDescription.cs
- WorkflowInstanceExtensionProvider.cs
- FormatException.cs
- HttpCookiesSection.cs
- SafeNativeMethods.cs
- WebResponse.cs
- Enum.cs
- GlyphCache.cs
- EncryptedPackage.cs
- IndentedTextWriter.cs
- SByteConverter.cs
- GestureRecognizer.cs
- FunctionDefinition.cs
- ContentElement.cs
- BitmapSizeOptions.cs
- PerformanceCountersElement.cs
- CheckBoxField.cs
- MailBnfHelper.cs
- ControlPropertyNameConverter.cs
- SignerInfo.cs
- Vector3DAnimationBase.cs
- SymmetricKeyWrap.cs
- TextBoxRenderer.cs
- PolyQuadraticBezierSegment.cs
- RegistrationServices.cs
- FileChangesMonitor.cs
- OptimalTextSource.cs
- XmlDeclaration.cs
- UIElement3D.cs
- CodeObject.cs
- LogLogRecordHeader.cs
- ListItemConverter.cs
- InfocardInteractiveChannelInitializer.cs
- Parameter.cs
- DateTimeOffsetStorage.cs
- mediaeventshelper.cs
- ReferentialConstraint.cs
- SqlParameterCollection.cs
- BitmapData.cs
- PrinterResolution.cs
- ManagementNamedValueCollection.cs
- TextFragmentEngine.cs
- LinqDataSourceDeleteEventArgs.cs
- RegexCapture.cs
- WebPartAddingEventArgs.cs
- CollectionBuilder.cs
- StrokeNodeOperations2.cs
- OpCellTreeNode.cs
- TableRow.cs
- ImageDrawing.cs
- StylusButtonEventArgs.cs
- InteropAutomationProvider.cs
- InternalException.cs
- DelayLoadType.cs
- KeyEvent.cs