Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Checking .NET Type

0
0
Hi ravetam,

If you set ScriptEngine.AllowReflection to true, you can use Object.GetType for his purpose.
if (x.GetType() === y.GetType()) {
    // do something
}
Good luck!

Viewing all articles
Browse latest Browse all 2297