If you have declared a struct:

struct EmptyResult
{
}

What is the result of creating a variable of type EmptyResult in an instance?

public Foo()
{
    EmptyResult result;
}

Would you expect an allocation on the stack, or is it effectively a no-op?

Edit
Report