Creating a Class in C#, which file should I use? -
as told in question before, i'm starting learn c# , right i'm beginning classes theory, when going create class found there 2 'templates' [i'm using xamarin on mac], 1 under c# -> general, , other 1 in c# -> monogame. both seems pretty same, want know 1 should use, or differences between both?
this 1 located in general:
using system; namespace application { public class stack { public stack () { } } }
and 1 in monogame:
using system; using system.collections.generic; using system.linq; using system.text; using microsoft.xna.framework; using microsoft.xna.framework.audio; using microsoft.xna.framework.gamerservices; using microsoft.xna.framework.graphics; using microsoft.xna.framework.input; using microsoft.xna.framework.input.touch; using microsoft.xna.framework.storage; using microsoft.xna.framework.content; using microsoft.xna.framework.media; namespace application { class stack { } }
the using system
basic framework needs uploaded thing console.write()
. out it, you'd have system.console.write
.
in second example, importing other framework might need depending on developing. looks of it, basic game framework set: audio, graphics, touch, etc.
the using
way import frameworks might need. see: https://msdn.microsoft.com/en-us/library/zhdeatwt.aspx
Comments
Post a Comment