Quantcast
Channel: Javascript .NET
Viewing all articles
Browse latest Browse all 137

New Post: Returing .net object

$
0
0
Set your function "GetRandomPerson" to not static and when u calling "person1.toString();" you calling the object what you returned in your class "public Person GetRandomPerson()".
class Person is not a script but an object, try in your script "person1.name" or another variable from Person object.

Viewing all articles
Browse latest Browse all 137

Trending Articles



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