mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-26 16:08:14 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
367 B
C#
25 lines
367 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace TestPackage;
|
|
|
|
public class GenericClass<T1>
|
|
{
|
|
public string Greet<T2>( T1 arg1, T2 arg2 )
|
|
{
|
|
return $"Hello {arg1} {arg2}";
|
|
}
|
|
}
|
|
|
|
public class Program : TestCompiler.IProgram
|
|
{
|
|
public int Main( StringWriter output )
|
|
{
|
|
var inst = new GenericClass<int>();
|
|
|
|
output.Write( inst.Greet( 53, "World" ) );
|
|
|
|
return 0;
|
|
}
|
|
}
|