In C# würde ich so etwas tun:
Code: Select all
void myfunction (int first, string second)
{
// Some code
}
void myfunction (int first, string second, float third)
{
// Some different code
}
Code: Select all
void myfunction (int first, string second)
{
// Some code
}
void myfunction (int first, string second, float third)
{
// Some different code
}