Update for 22-02-22 15:00
This commit is contained in:
parent
361e2117d4
commit
4f17a427bb
@ -2,6 +2,67 @@
|
||||
|
||||
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]]
|
||||
|
||||
|
||||
|
||||
|
3
tech/asp.net.wiki
Normal file
3
tech/asp.net.wiki
Normal file
@ -0,0 +1,3 @@
|
||||
== ASP.NET ==
|
||||
|
||||
ASP.NET is an open source cross platform web framework for C#
|
Loading…
Reference in New Issue
Block a user