Files
mono/mcs/class/System.Core/System.Linq.Expressions/ConditionalExpression.cs
T
2007-03-23 18:03:41 +00:00

47 lines
1.1 KiB
C#

using System.Text;
namespace System.Linq.Expressions
{
public sealed class ConditionalExpression : Expression
{
#region .ctor
internal ConditionalExpression(Expression test, Expression ifTrue, Expression ifFalse, Type type)
: base(ExpressionType.Conditional, type)
{
this.test = test;
this.ifTrue = ifTrue;
this.ifFalse = ifFalse;
}
#endregion
#region Fields
private Expression ifFalse;
private Expression ifTrue;
private Expression test;
#endregion
#region Properties
public Expression IfFalse
{
get { return ifFalse; }
}
public Expression IfTrue
{
get { return ifTrue; }
}
public Expression Test
{
get { return test; }
}
#endregion
#region Internal Methods
internal override void BuildString(StringBuilder builder)
{
//TODO:
}
#endregion
}
}