Non-ugly ways to implement a 'static' class or namespace?
Kagamin
spam at here.lot
Fri Feb 10 14:24:24 UTC 2023
On Friday, 10 February 2023 at 14:17:25 UTC, Kagamin wrote:
> Pretty sure you can strip namespaces in any language that has
> namespaces, C# routinely does it and refers to all types with
> their nonqualified names. It even has Keys enum:
> https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.keys which is referred to as Keys after stripping the System.Windows.Forms namespace.
An example from KeePass:
https://github.com/dlech/KeePass2.x/blob/VS2022/KeePass/Util/SendInputExt/SiCodes.cs#L86
More information about the Digitalmars-d-learn
mailing list