Tag:dotnet
All the articles with the tag "dotnet".
Escaping Invalid XML Unicode characters
Step-by-step derivation of a C# regex to strip or escape characters invalid in XML, handling UTF-16 surrogate pairs correctly.
My old NUnit _pull request_
Retrospective on a NUnit v2 bug fix submitted before pull requests existed, credited only via a manual description.
NUnit pull request
Announcement of a pull request submitted to the NUnit framework to fix invalid XML character handling in test output.
Stripping invalid characters from UTF-16 strings
C# regex approach to remove unpaired UTF-16 surrogate characters from strings to ensure valid Unicode output.
NUnit issue
Bug report for NUnit console failing when error messages contain invalid XML characters such as null bytes.
The best debugging technique - inverse breakpoint
Using Debugger.Launch and Debugger.Break in C# code to attach a debugger to hard-to-reach processes like Visual Studio plugins.
Name collisions, PSBase and other mad PowerShell internals
Explores PowerShell name collisions between XML attributes and .NET properties, and how PSBase and PSObject.Members resolve them.
WTF Method overloads resolution in PowerShell
PowerShell resolves .NET method overloads differently from C#, causing unexpected method calls with bool arguments.
PowerShell 2 and .NET Framework 4
How to configure PowerShell 2 to use .NET Framework 4 CLR via registry or config files.
obj.ToString(), nulls and ReSharper
ReSharper incorrectly marks ToString() as non-nullable, but BCL types like HtmlString can return null.