Skip to content

JSClassBuilder<T> class

C#
public class JSClassBuilder<T> : JSPropertyDescriptorList<JSClassBuilder, T>

Public Members

namedescription
JSClassBuilder(…)(5 constructors)
ClassName { get; }
DefineClass(…)Creates a class definition for the built class.
DefineEnum()Creates a JS Object for a TypeScript-style enumeration. The object has readonly integer properties along with a reverse number-to-string mapping.
DefineInterface()Defines a JS class that represents a .NET interface.
DefineStaticClass()Creates a JS object that represents a static class. The object that represents the class has (static) properties, but is not a constructor function so it cannot be instantiated.
DefineStruct()
delegate Constructor<T>
delegate ConstructorWithArgs<T>

See Also

Released under the MIT license