Files
sbox-public/engine/Sandbox.Compiling.Test/Data/code/fastpath/MixedGenericMethod.1.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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;
}
}