I would like to know whether it is possible to implement in C # my own language constructs (for example, lock or foreach)?
The idea is that I want to mark the beginning and end of a block of operations. instead of writing
startblock("blockname");
blabla();
andsoon();
endblock();
I would like to write something like
block("blockname"){
blabla();
test();
}
Thank you!
source
share