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
- InstallerTypeAttribute.cs
- StringDictionaryEditor.cs
- WebScriptEnablingElement.cs
- MediaEntryAttribute.cs
- DocumentApplicationJournalEntryEventArgs.cs
- WebPartDisplayMode.cs
- ImplicitInputBrush.cs
- ProofTokenCryptoHandle.cs
- CaseStatementSlot.cs
- RectConverter.cs
- StringHelper.cs
- SEHException.cs
- NullReferenceException.cs
- MetadataLocation.cs
- UserControlCodeDomTreeGenerator.cs
- StorageBasedPackageProperties.cs
- ItemAutomationPeer.cs
- ByteArrayHelperWithString.cs
- PolyQuadraticBezierSegment.cs
- GlyphCache.cs
- XmlDataImplementation.cs
- HttpProfileGroupBase.cs
- AlternateView.cs
- WsdlInspector.cs
- MenuCommands.cs
- VarRemapper.cs
- StateItem.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- IconEditor.cs
- UserUseLicenseDictionaryLoader.cs
- ConstructorNeedsTagAttribute.cs
- RelationshipEndCollection.cs
- DbParameterCollection.cs
- DisplayInformation.cs
- UriScheme.cs
- ListenUriMode.cs
- ListDictionaryInternal.cs
- UserMapPath.cs
- LostFocusEventManager.cs
- FloatUtil.cs
- RootProfilePropertySettingsCollection.cs
- FamilyMapCollection.cs
- MessageLoggingElement.cs
- EndpointAddressAugust2004.cs
- BoolLiteral.cs
- TextLine.cs
- Reference.cs
- StreamingContext.cs
- ExclusiveTcpTransportManager.cs
- CodeValidator.cs
- CmsUtils.cs
- EventPropertyMap.cs
- TemplateBamlRecordReader.cs
- GridViewHeaderRowPresenter.cs
- ShaderEffect.cs
- basecomparevalidator.cs
- SecurityToken.cs
- XmlText.cs
- InvalidateEvent.cs
- AutoGeneratedFieldProperties.cs
- Evaluator.cs
- clipboard.cs
- MemoryMappedViewAccessor.cs
- Rect.cs
- MergeLocalizationDirectives.cs
- ToolBarButton.cs
- PropertyDescriptorGridEntry.cs
- RegistryKey.cs
- PathSegmentCollection.cs
- ConnectionManagementSection.cs
- XmlSchemaSubstitutionGroup.cs
- xsdvalidator.cs
- XmlSchemaSearchPattern.cs
- JobStaple.cs
- SelectionChangedEventArgs.cs
- DynamicMethod.cs
- Form.cs
- Brushes.cs
- PipelineModuleStepContainer.cs
- TreeNodeConverter.cs
- UxThemeWrapper.cs
- MeasureItemEvent.cs
- RenderDataDrawingContext.cs
- safePerfProviderHandle.cs
- WmlControlAdapter.cs
- ResourceProperty.cs
- Scene3D.cs
- EventData.cs
- WorkflowDesignerColors.cs
- PlanCompiler.cs
- BaseAddressElementCollection.cs
- UInt32Converter.cs
- CqlLexer.cs
- DropTarget.cs
- KnownTypeDataContractResolver.cs
- CustomValidator.cs
- DiscoveryDefaults.cs
- XmlComment.cs
- ToolBarButtonClickEvent.cs
- SoapMessage.cs