• The C# Interactive Window

    Updated: 2025-02-28 23:16:32
    The C# Interactive window in VS is not the best interactive C# experience, LINQPad still has the honor, I believe, but it is a quick and convenient option for trying out a few lines of code.

  • Beautiful Binary Literals

    Updated: 2025-02-28 23:16:32
    Finally! I've used binary literals in real code. This feature, and the digits separator have been good additions to the C# language. public static byte[] BreakIntoTwos(byte value) { var result = new byte[4]; result[0] = (byte)((value & 0b1100_0000) >> 6); result[1] = (byte)((value & 0b0011_0000) >> 4); result[2] = (byte)((value & 0b0000_1100) >> 2); result[3] = (byte) (value & 0b0000_0011); return result; }

Current Feed Items | Previous Months Items

Jan 2025 | Dec 2024 | Nov 2024 | Oct 2024 | Sep 2024 | Aug 2024