|
|
|
@ -53,6 +53,30 @@ namespace ICSharpCode.NRefactory.CSharp
@@ -53,6 +53,30 @@ namespace ICSharpCode.NRefactory.CSharp
|
|
|
|
|
return new TypeReferenceExpression { Type = this }.Member(memberName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Builds an invocation expression using this type as target.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public InvocationExpression Invoke(string methodName, IEnumerable<Expression> arguments) |
|
|
|
|
{ |
|
|
|
|
return new TypeReferenceExpression { Type = this }.Invoke(methodName, arguments); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Builds an invocation expression using this type as target.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public InvocationExpression Invoke(string methodName, params Expression[] arguments) |
|
|
|
|
{ |
|
|
|
|
return new TypeReferenceExpression { Type = this }.Invoke(methodName, arguments); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Builds an invocation expression using this type as target.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public InvocationExpression Invoke(string methodName, IEnumerable<AstType> typeArguments, IEnumerable<Expression> arguments) |
|
|
|
|
{ |
|
|
|
|
return new TypeReferenceExpression { Type = this }.Invoke(methodName, typeArguments, arguments); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static AstType Create(Type type) |
|
|
|
|
{ |
|
|
|
|
switch (Type.GetTypeCode(type)) { |
|
|
|
|