mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
35 lines
692 B
C#
35 lines
692 B
C#
using System;
|
|
|
|
namespace HelloWorld {
|
|
public class Program {
|
|
|
|
public static void CallInteger() {
|
|
Integer();
|
|
}
|
|
|
|
public static void Integer() {
|
|
int i = 22;
|
|
}
|
|
|
|
public static void StringViaCtor() {
|
|
object x = new string('t', 45);
|
|
}
|
|
|
|
public static void LiteralString() {
|
|
object x = "Hello, World!";
|
|
}
|
|
|
|
public static void Main() {
|
|
CallInteger();
|
|
Integer();
|
|
StringViaCtor();
|
|
LiteralString();
|
|
}
|
|
|
|
public static void ActualMain(string[] args) {
|
|
string s = "Test";
|
|
Console.WriteLine("Hello world!");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|