Nobuyuki Iwanaga
Nobuyuki Iwanaga
Can this improve perfomance of `foreach` statement? In some cases, `foreach` statement causes small object allocation: ``` cs using System; using System.Collections.Generic; class Program { static void Main() { const...
see: https://github.com/dotnet/csharplang/blob/main/proposals/utf8-string-literals.md#examples-today This is an excuse not to provide benchmarks, but it is a widely known fact that getting UTF-8 bytes from string literals is not efficient.
https://github.com/dotnet/csharplang/milestone/14 > We probably wouldn't devote resources to implementing this, but we'd likely accept a PR that cleanly implements a solution.
> So far as I know you can't ever store an in reference on a ref field nor on a readonly ref field. ```cs ref struct Foo { public ref...
@MichalPetryka `MemoryMarshal` is unsafe. ```cs using System.Runtime.InteropServices; ref var obj = ref m(); n(); Console.WriteLine(obj.ToString()); // NullReference ref object m() { SomeName span = new(new(), new(), new(), new()); return ref...
Updated to link sharplab codes. FYI, you can reproduce the issue by using only ASCII spaces (20) and tabs (09).
Can you download from https://gist.github.com/ufcpp/0366469fe355705fdfb062ce98570586 ?
Maybe copy-and-paste from the folloing code shows 20 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 200A 3000 ```cs foreach (var c in " ") { Console.WriteLine($"{(int)c:X}"); }...
On a separate note, I've found another strange behavior in Visual Studio while experimenting with this issue. Visual Studio seems to display VT (U+000B) and FF (U+000C) as ♂ and...
It doesn't seem to be CP437.  I just heard on Twitter that this glyph is used when displaying control characters in Wingdings. > Please file that through normal vs...