You'll just have to make it into a method that takes the appropriate steps. Probably decorate the method for suggested inlining. Current versions of C# doesn't have macros. An alternative is to use T4 to generate the code, but you still won't get quite the same effect of having a macro that you can invoke anytime. It will be useful if you are building static table, though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.