TypeNameFormatter icon indicating copy to clipboard operation
TypeNameFormatter copied to clipboard

A small .NET library for formatting type names à la C#.

Results 6 TypeNameFormatter issues
Sort by recently updated
recently updated
newest added

This isn't as clear-cut as it may be, since `System.IntPtr` has traditionally been used in interop scenarios to represent unmanaged pointers outside of `unsafe` contexts. `nint` "feels" much closer to...

Right now, to get the updated code file, one has to manually delete the target project's `obj/` folder, then do a NuGet package restore, i.e. essentially a manual re-install of...

bug

This library currently only looks at `Type`, but for parameter types there is some additional useful information at the `ParameterInfo` level: * whether `params` was specified; * allows one to...

Say you don't use any formatting options qt all. It might be nice if support for them were completely removed from the compilation (mainly for code reduction, but also for...

Since TypeNameFormatter is a source code distribution it's important to produce no warnings so that it can be used in projects with strict compilation options.

C#11 introduced [file-local types](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/file), e.g.: ```c# file Widget { } ``` For such a type TypeNameFormatter's `GetFormattedName` with default options returns a string like: ``` F17747E0EBC6415B90778A501AEC22976F1C544F0DC79EFDAF3C948D89987F740__Widget ``` I suggest that...