tabs instead of spaces
[mono.git] / mcs / class / System.Core / System.Linq.Expressions / ConditionalExpression.cs
1 using System.Text;
2
3 namespace System.Linq.Expressions
4 {
5         public sealed class ConditionalExpression : Expression
6         {
7                 #region .ctor
8                 internal ConditionalExpression(Expression test, Expression ifTrue, Expression ifFalse, Type type)
9                         : base(ExpressionType.Conditional, type)
10                 {
11                         this.test = test;
12                         this.ifTrue = ifTrue;
13                         this.ifFalse = ifFalse;
14                 }
15                 #endregion
16
17                 #region Fields
18                 private Expression ifFalse;
19                 private Expression ifTrue;
20                 private Expression test;
21                 #endregion
22
23                 #region Properties
24                 public Expression IfFalse
25                 {
26                         get { return ifFalse; }
27                 }
28
29                 public Expression IfTrue
30                 {
31                         get { return ifTrue; }
32                 }
33
34                 public Expression Test
35                 {
36                         get { return test; }
37                 }
38                 #endregion
39
40                 #region Internal Methods
41                 internal override void BuildString(StringBuilder builder)
42                 {
43                         //TODO:
44                 }
45                 #endregion
46         }
47 }