I saw this in a random doxygen example for C#, and all attempts at Googling for it have failed since I have no idea what it’s called or what it does.
int test(int a, string b);
int i = test(1, "b");
Any one have any insight?
EDIT
So here’s a fun try. I put it into a new program and it doesn’t compile, except if I put a static in front of it. Now it compiles.
namespace ConsoleApplication1
{
class Program
{
static int test(int a, string b);
static void Main(string[] args)
{
int i = test(1, "b");
}
}
}
The first line looks like an interface declaration. It is saying that a class has a method that accepts an integer and a string and returns an integer.
Then it calls the method. However, this isn’t valid right now. I’m not sure if the rest was removed for brevity since you didn’t link to the source. Valid code would look like this: