Automatic code generation from a C# class to JavaScript equivalent -



Automatic code generation from a C# class to JavaScript equivalent -

i'd expose class i've written in c# downwards javascript equivalent.

for illustration have class like:

// c# class represent appriaser public class appraiser { public appraiser(appraiserid, appraisername) { appraiserid = appraiserid; appraisername = appraisername; } public int appraiserid { get; set; } public string appraisername { get; set; } }

and ability automatically generate version of class in javascript

// javascript class represent appraiser function appraiser(appraiserid, appraisername) { var self = this; self.appraiserid= appraiserid; self.appraisername= appraisername; }

is possible json.net or method?

i know i'm necro'ing old question, there's few options these days.

there's class knockout generator visual studio create knockout viewmodels you. also, if typescript - using web essentials "generate typescript" alternative on class lot of way there.

c# javascript code-generation json.net

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -