vimwiki/tech/C-sharp.wiki

70 lines
960 B
Plaintext

= C# =
Purely object oriented language that relies on a JIT. Primary library is .NET
C# is both portable and fast, and coupled with the .NET framework.
== Types ==
* string
* is an object, not a primative data type
* char
* single 16bit unicode char
* byte
* 8 bit unsigned int
* short
* 16 bit signed int
* int
* 32 bit signed int
* long
* 64 bit signed int
* float (2.5F)
* 32bit floating point
* double (3.5)
* 64bit double floating point
* decimal (4.5M)
* 128bit precise decimal
* bool
* 1 bit true false
== Modifiers ==
* const
* not modifiable at runtime
== casting ==
casting works the same way as C/C++
* (int)3.14
Or call convert
* Convert.ToInt32("50");
* Convert.ToDouble("50.0");
== strings ==
== Examples ==
=== Hello World ===
{{{
class Application
{
public static void Main(string[] args)
{
Console.WriteLine("Hello world!");
}
}
}}}
== ASP.NET ==
See [[asp.net.wiki]]
[[index]]