command line options, and dos2unix
[mono.git] / mcs / class / System.Core / System.Linq.Expressions / MethodCallExpression.cs
1 using System.Collections.ObjectModel;
2 using System.Reflection;
3 using System.Text;
4
5 namespace System.Linq.Expressions
6 {
7     public sealed class MethodCallExpression : Expression
8     {
9         #region .ctor
10         internal MethodCallExpression(ExpressionType type, MethodInfo method, Expression obj, ReadOnlyCollection<Expression> arguments)
11             : base(type, method.ReturnType)
12         {
13             this.obj = obj;
14             this.method = method;
15             this.arguments = arguments;
16         }
17         #endregion
18
19         #region Fields
20         private ReadOnlyCollection<Expression> arguments;
21         private MethodInfo method;
22         private Expression obj;
23         #endregion
24
25         #region Properties
26         public ReadOnlyCollection<Expression> Arguments
27         {
28             get { return arguments; }
29         }
30
31         public MethodInfo Method
32         {
33             get { return method; }
34         }
35
36         public Expression Object
37         {
38             get { return obj; }
39         }
40         #endregion
41
42         #region Internal Methods
43         internal override void BuildString(StringBuilder builder)
44         {
45             //TODO:
46         }
47         #endregion
48     }
49 }