Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Edited Unassigned: Camel case for properties/methods [59]

$
0
0
Hi,

I am exposing existing .NET objects to my script now following .NET conventions I am using PascalCase for my names, is there any nice way that these can become camel cased once exposed to js?

I don't want to have to pollute my objects with methods of both cases or move to camel casing, it would be nice if there was an attribute I could put on methods or some sort of global flag to say treat eveyrthing as camel case.

It would be nice if this could be conventional so I could support it on existing libraries that I cannot add the attribute to!


Ideas?


Thanks
Stefan

Viewing all articles
Browse latest Browse all 2297

Trending Articles



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