Skip to content

Error when as Func<string> #125

@cesaryuan

Description

@cesaryuan

Execute the code below with EvalManager.DefaultContext.Execute

object handler = "";
if(handler is string)
{
	// anything
	int a = 1;
} 
else if (handler is Func<string>)
{
	(handler as Func<string>)();
}

It will throw Exception like this

Oops! A general error has occurred.Contact our support team for more information or if you believe it's an error on our part: info@zzzprojects.com

Version: 4.0.71

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions