frhagn / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
536 stars 132 forks source link

static methods #170

Open icepower03 opened 7 years ago

icepower03 commented 7 years ago

hello, i would like to generate typescript methods to call my pages' webmethods.

my problem is that my Webmethods are static and i can't get static methods of page in typewriter templates ( or i don't know)

is there a solution to change it ?

regards.

icepower03 commented 7 years ago

i saw that class' method loading function where filtered with a (f.IsShared==false), so i guess that this limit was made on purpose. Does it mean that it would be technically possible and easy?

lafritay commented 6 years ago

I'd like to do something similar for static extension methods on classes, FWIW.