static bool IsValidLiteralInitializer(Expression e)
{
switch (e.NodeType)
{
case NodeType.BoolLiteralExpression:
case NodeType.IntegerLiteralExpression:
case NodeType.DoubleLiteralExpression:
case NodeType.NullLiteralExpression:
case NodeType.StringLiteralExpression:
return true;
}
return false;
}