Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

JS to CS conversion problem with multiple class files

$
0
0
So I'm converting a few javascript files into c# files for basic continuity purposes. These JS files came from an outside source, but work in their current state. One particularly big file contains several class objects and a whole bunch of functions. In my CS file I have translated all of the functions and variables easily enough, but I'm stumped on how to deal with the classes. I know pre .NET 4 c# doesn't handle multiple inheritance, and I'm assuming I can't just put multiple classes within a c# class. ![alt text][1] These classes contain most of the needed variable declarations and methods needed for the rest of the functions to work, so how would I go about separating them out in a workable way? [1]: /storage/temp/59238-jsfile.png

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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