Yes, this ability of CLR to grok names with whitespaces is used for a long time by Nemerle guys in their
unit-testing DSL (their site seems to be down but contents can be found in
google cache, for example).
Yes, this ability of CLR to grok names with whitespaces is used for a long time by Nemerle guys in their
unit-testing DSL (their site seems to be down but contents can be found in
google cache, for example).
You can also call it by C# code, just use something like administrators\u0020can\u0020always\u0020login. C# allows unicode escapes in identifier names. See the language specification ECMA-334, section 9.4.2 Identifiers. This is a valid example from this section:
> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
>
> * You can quote a list.
> * Etc.
Horizontal Rules
Three or more dashes or asterisks:
---
* * *
- - - -
Manual Line Breaks
End a line with two or more spaces:
Roses are red,
Violets are blue.
Fenced Code Blocks
Code blocks delimited by 3 or more backticks or tildas:
```
This is a preformatted
code block
```
Header IDs
Set the id of headings with {#<id>} at end of heading line:
## My Heading {#myheading}
Tables
Fruit |Color
---------|----------
Apples |Red
Pears |Green
Bananas |Yellow
Definition Lists
Term 1
: Definition 1
Term 2
: Definition 2
Footnotes
Body text with a footnote [^1]
[^1]: Footnote text here
Abbreviations
MDD <- will have title
*[MDD]: MarkdownDeep
FUTURE POSTS
RavenDB 7.1: Next-Gen Pagers - 4 days from now
RavenDB 7.1: Write modes - 6 days from now
RavenDB 7.1: Reclaiming disk space - 8 days from now
RavenDB 7.1: Shared Journals - 11 days from now
There are posts all the way to Feb 17, 2025
RECENT SERIES
Challenge
(77): 03 Feb 2025 - Giving file system developer ulcer
Answer
(13): 22 Jan 2025 - What does this code do?
Comments
hehe, that's funny. Díd you use ILASM to create that?
No, Boo DSL based on XML storage.
Freaky stuff
Yeah, sorta the basis of much obfuscation software: just rename members to use something in the Unicode set that C#/VB/etc doesn't support...
I wonder if that were part of the changes for the C++/CLR version, where has things like "for each" being a single keyword.
Why are you specifying an hour value in hex?
That is a Reflector setting
Hmm, it is surprising that they allow that.
Yes, this ability of CLR to grok names with whitespaces is used for a long time by Nemerle guys in their unit-testing DSL (their site seems to be down but contents can be found in google cache, for example).
Yes, this ability of CLR to grok names with whitespaces is used for a long time by Nemerle guys in their unit-testing DSL (their site seems to be down but contents can be found in google cache, for example).
Do you have a feed for the comments on your blog Oren?
Andres,
Not that I know of.
If SubText has it, then probably
That's nice is there any way to call it from C#?
Not really, no.
VB probably can, though
You can also call it by C# code, just use something like administrators\u0020can\u0020always\u0020login. C# allows unicode escapes in identifier names. See the language specification ECMA-334, section 9.4.2 Identifiers. This is a valid example from this section:
class @class
{
public static void @static(bool @bool) {
if (@bool)
System.Console.WriteLine("true");
else
System.Console.WriteLine("false");
}
}
class Class1
{
static void M() {
cl\u0061ss.st\u0061tic(true);
}
}
Thomas,
Thanks, it is good to know.
Scary as hell, too.
Comment preview