i create a C# Component and create a Class named Book:
public sealed class Book
{
string title = "title";
string index = "index";
int page = 100;
}
and create a method:
public sealed class Example
{
public static Book GetAnswer()
{
Book b = new Book();
return b;
}
}
in js:
var book = SampleComponent.Example.getAnswer();
but i can't get the instance of Book class. how can i get the data?