I know little about C# This section will go over all my current knowledge of the C# programming language.
This is how you make a Hello World program in C# there is not much that can be changed.
using System;
Console.WriteLine("Hello, world!");
Comments in C# are identical to comments in Java, JavaScript, C, CSS, Google Go, C++, etc..
// This is a single line comment
/* This
is a multiline
comment */
/* Multi-line comments
* can also
* be written
* like this */
break;
To this day, I am still not entirely sure what the break
keyword does, but most languages support it.
/!\ This example has not been tested yet, and may not work
C# supports classes. The following is an example of classes in C#
class myCSharpClass {
static void main() {
Console.WriteLine("Welcome to C# class");
break;
}
return main();
break;
}
/!\ This example has not been tested yet, and may not work
C# supports the return
keyword. The following is an example of returning a function in C#
public void function1() {
Console.WriteLine("A functional functioning function");
break;
}
return function1();
/!\ This example has not been tested yet, and may not work
Integers in C# are similar in usage to that of Java, C, and C++ This is how you define them:
int two = 2;
int sixteen = 16;
Console.WriteLine(two ** sixteen);
break;
/!\ This example has not been tested yet, and may not work
This example is identical to the above example. It demonstrates how to exponentiate values in C#
int two = 2;
int sixteen = 16;
Console.WriteLine(two ** sixteen);
break;
2^16 = 65,536. The program should return 65,536 (the maximum value of a 16 bit integer)
/!\ This example has not been tested yet, and may not work
-
C# is a DOT NET framework language
-
C# is a language by Microsoft
-
C# is very similar to Java. Sometimes, it is commonly joked that C# is Microsoft Java
-
The only feature of C# I know that differentiates it from Java is boxing and unboxing, and the syntax
-
C# is named after the musical note C♯ (C Sharp) and the language and the note are pronounced the same
-
Due to technical restrictions on webpages, the # usually has to be ommitted from the name of pages
-
C# uses the
*.cs
file extension -
C# is a curly bracket and semicolon language
-
No other knowledge of the C# programming language