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

New Post: Checking .NET Type

$
0
0
Hi, how do i compare a .NET type in V8ScringEngine?

For example, i want to compare if thefollowing types are equal

var x = new Order();
var y = new Customer();

if (typeof(x) === typeof(y){

};

This will always returns true because typeof(x) or typeof(y) is always an "object".

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>