Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClause.cs / 1305376 / CodeCatchClause.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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
//
// [....]
// 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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeSystemProvider.cs
- ChangeBlockUndoRecord.cs
- ContentValidator.cs
- CheckedPointers.cs
- CodeNamespace.cs
- Pool.cs
- TaskFactory.cs
- COM2ComponentEditor.cs
- InputScope.cs
- X509ChainPolicy.cs
- ComplexType.cs
- UrlAuthFailedErrorFormatter.cs
- BitConverter.cs
- CurrencyWrapper.cs
- FormatterConverter.cs
- ReadOnlyMetadataCollection.cs
- Converter.cs
- Activator.cs
- SeekableReadStream.cs
- BamlTreeUpdater.cs
- TextUtf8RawTextWriter.cs
- _OverlappedAsyncResult.cs
- OleCmdHelper.cs
- BuildProvider.cs
- XamlFrame.cs
- HttpCapabilitiesEvaluator.cs
- DiagnosticEventProvider.cs
- ContextMenuStripGroupCollection.cs
- Atom10ItemFormatter.cs
- OSEnvironmentHelper.cs
- AutomationIdentifierGuids.cs
- UserValidatedEventArgs.cs
- safelinkcollection.cs
- TextBoxAutomationPeer.cs
- Rule.cs
- WindowsHyperlink.cs
- IApplicationTrustManager.cs
- HashSet.cs
- CapabilitiesState.cs
- IconConverter.cs
- FormViewDeleteEventArgs.cs
- XmlQueryTypeFactory.cs
- ProtocolsConfigurationEntry.cs
- TextRunProperties.cs
- PropertyItemInternal.cs
- MessagingActivityHelper.cs
- HttpCacheVary.cs
- OdbcEnvironment.cs
- ParentQuery.cs
- UpWmlMobileTextWriter.cs
- BookmarkResumptionRecord.cs
- SynchronizationLockException.cs
- SortQuery.cs
- TableLayoutStyle.cs
- EncoderFallback.cs
- RequestQueryParser.cs
- InvalidPipelineStoreException.cs
- lengthconverter.cs
- FontFamily.cs
- CheckBox.cs
- StylusPointCollection.cs
- XmlDigitalSignatureProcessor.cs
- DiagnosticTrace.cs
- ConfigsHelper.cs
- CachedResourceDictionaryExtension.cs
- IndexedString.cs
- RectAnimation.cs
- PipeConnection.cs
- ErasingStroke.cs
- FixedSOMLineCollection.cs
- ProcessModuleCollection.cs
- ResXResourceReader.cs
- TypeSystem.cs
- SelectionPatternIdentifiers.cs
- newinstructionaction.cs
- WebBrowserPermission.cs
- ObjectIDGenerator.cs
- LocalIdKeyIdentifierClause.cs
- FlowDocumentView.cs
- WebConfigurationHost.cs
- MarkupObject.cs
- DeclarationUpdate.cs
- Array.cs
- Expression.cs
- SessionStateContainer.cs
- SqlUnionizer.cs
- Image.cs
- IdleTimeoutMonitor.cs
- XmlCharCheckingReader.cs
- HttpHandlersSection.cs
- XmlMembersMapping.cs
- URLMembershipCondition.cs
- SafeHandles.cs
- HtmlTextArea.cs
- FullTextState.cs
- QueryResult.cs
- HelpEvent.cs
- RegisteredArrayDeclaration.cs
- XsdBuildProvider.cs
- BrowserCapabilitiesCompiler.cs