I just found myself absent-mindedly using from as an identifier.
I realise that it is possible to use @ to escape identifier names and as such use reserved words, but I don’t understand why in this case I got no warning or error.
I have no desire to use reserved words for anything but their intended purpose, but I don’t want to make a similar mistake again and would like to know the rationale behind having language keywords that are not reserved in certain circumstances.
Some keywords are only reserved in certain contexts, e.g., the
partialinpartial class.See the “contextual keywords” under this topic on MSDN.