//------------------------------------------------------------------------------
//
//
// [....]
// 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 statement that throws an exception.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeThrowExceptionStatement : CodeStatement {
private CodeExpression toThrow;
///
///
/// Initializes a new instance of .
///
///
public CodeThrowExceptionStatement() {
}
///
///
/// Initializes a new instance of using the specified statement.
///
///
public CodeThrowExceptionStatement(CodeExpression toThrow) {
ToThrow = toThrow;
}
///
///
/// Gets or sets
/// the expression to throw.
///
///
public CodeExpression ToThrow {
get {
return toThrow;
}
set {
toThrow = value;
}
}
}
}