= CSharp = CSharp is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, procedural, generic, object-oriented (class-based), and component-oriented programming disciplines. It was developed by Microsoft within its .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming languages designed for the Common Language Infrastructure. From [[http://en.wikipedia.org/wiki/C_Sharp_(programming_language)|Wikipedia]] == Compile code based on csc (CSharp compiler) == Look for the compiler in '''c:\windows\Microsoft.NET\Framework\\csc.exe''' Hello world sample code: {{{#!highlight csharp using System; namespace org.bitarus.allowed { public class Program { public static void Main(string[] args) { System.Console.WriteLine("Hello world"); } } } }}} Compile HelloWorld.cs: * csc /t:exe /out:HelloWorld.exe HelloWorld.cs == Build batch file example .NET 4.0 == {{{ C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /t:library /out:libx.dll src\_Default.cs src\DALSql.cs src\Global.cs }}} == app.config sample == {{{#!highlight xml }}} {{{#!highlight csharp using System.Configuration; //..... string valuex = ConfigurationManager.AppSettings["keyx"]; System.Console.WriteLine(valuex); }}} Copy src/app.config to AppX.exe.config. == JSON library several :net version == http://james.newtonking.com/json === Deserialization example === {{{#!highlight csharp // mcs test.cs /r:Newtonsoft.Json.dll // mono test.exe using Newtonsoft.Json; using System; public class Reply{ public int mnr {get;set;} public int fnr {get;set;} public MSG[] msg {get;set;} } public class MSG{ public DateX date {get;set;} public string msg {get;set;} } public class DateX{ [JsonProperty("$date")] public long datex { get;set; } } public class Program{ public static void Main(string[] args){ string json = @"{\"mnr\": 1, \"fnr\": 777, \"msg\": [ {\"date\": {\"$date\": 1388679281000}, \"msg\": \"AAAAA\"}, {\"date\": {\"$date\": 1388678779000}, \"msg\": \"BBBBB\"}, {\"date\": {\"$date\": 1388676003000}, \"msg\": \"CCCCC\"} ]}"; Reply r = JsonConvert.DeserializeObject(json); System.Console.WriteLine(String.Format("Fnumber:{0} MNumber:{1}",r.fnr,r.mnr)); foreach(MSG msg in r.msg) { System.Console.WriteLine(String.Format("MSG:{0} Date:{1} ",msg.msg, msg.date.datex )); } } } }}}