0
I’m trying to instantiate the following class from the English library
using System.Reflection;
namespace System.Linq.Expressions
{
//
// Summary:
// Represents accessing a field or property.
public class MemberExpression : Expression
{
//
// Summary:
// Gets the containing object of the field or property.
//
// Returns:
// An System.Linq.Expressions.Expression that represents the containing object of
// the field or property.
public Expression Expression { get; }
//
// Summary:
// Gets the field or property to be accessed.
//
// Returns:
// The System.Reflection.MemberInfo that represents the field or property to be
// accessed.
public MemberInfo Member { get; }
//
// Summary:
// Returns the node type of this System.Linq.Expressions.MemberExpression.Expression.
//
// Returns:
// The System.Linq.Expressions.ExpressionType that represents this expression.
public sealed override ExpressionType NodeType { get; }
//
// Summary:
// Creates a new expression that is like this one, but using the supplied children.
// If all of the children are the same, it will return this expression.
//
// Parameters:
// expression:
// The System.Linq.Expressions.MemberExpression.Expression property of the result.
//
// Returns:
// This expression if no children are changed or an expression with the updated
// children.
public MemberExpression Update(Expression expression);
//
// Summary:
// Dispatches to the specific visit method for this node type. For example, System.Linq.Expressions.MethodCallExpression
// calls the System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(System.Linq.Expressions.MethodCallExpression).
//
// Parameters:
// visitor:
// The visitor to visit this node with.
//
// Returns:
// The result of visiting this node.
protected internal override Expression Accept(ExpressionVisitor visitor);
}
}
The way I’m trying to instantiate is this:
public class Exemple
{
public void ExampleMethod()
{
var memberExpression = new MemberExpression();
}
}
If it is a class that is not abstract why it cannot instantiate?