mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Clean a bunch of C# warnings
- `[Obsolete]` tag generated in the middle of documentation comments - Potential `null` values in generators - Obsolete call to `GetEditorInterface()` - We don't want `Godot.Collections.Array` to end with `Collection` - A few culture specifications and use of `AsSpan` instead of `SubString` in `StringExtensions` - Disable CA1716 in GodotSharp
This commit is contained in:
parent
74c32faa78
commit
46b3096570
11 changed files with 50 additions and 26 deletions
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Godot.SourceGenerators
|
||||
{
|
||||
public static class Helper
|
||||
{
|
||||
[Conditional("DEBUG")]
|
||||
public static void ThrowIfNull([NotNull] object? value)
|
||||
{
|
||||
_ = value ?? throw new ArgumentNullException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue