/// <summary>
/// Gets the constant value.
/// </summary>
/// <param name="exp">The exp.</param>
/// <returns></returns>
public static object GetConstantValue(this Expression exp){
...
}
I found this code in an open source project. It kinda looks like a joke, but it’s not.