While checking some repo I found out this and it broke my mind.
Example:
var config = Config.GetConfig();
var gen = new MatDocumenationGenerator(typeof(BaseMatDomComponent).Assembly,
Path.Combine(config.Path, "MatBlazor.Demo", "Doc"));
{
}
;
gen.Generate();
How it's possible to have { };
inside a method? Why it isn't a compile error?
I'm not sure but maybe it's some feature of the language? If yes, what does this do or is used for? How it works?
I tried to search what is this, but I don't even know how to call this, so, is there a name for this?