Ban some more BCL methods (not used anywhere)

This commit is contained in:
YoshiRulz 2024-08-26 01:38:56 +10:00
parent 67f87b15c4
commit 93fe2c8b6a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 0 deletions

View File

@ -10,5 +10,8 @@ M:System.Convert.ToUInt16(System.String);use ushort.{Try,}Parse
M:System.Convert.ToUInt32(System.String);use uint.{Try,}Parse
M:System.Convert.ToUInt64(System.String);use ulong.{Try,}Parse
M:System.Diagnostics.Debug.Assert(System.Boolean);include a unique message
M:System.Diagnostics.Debug.WriteLine(System.String);use Util.DebugWriteLine (first-party) because apparently the BCL's version doesn't work properly in some circumstances?
M:System.Diagnostics.Trace.Assert(System.Boolean);include a unique message
M:System.Diagnostics.Trace.Assert(System.Boolean,System.String);just do the check and throw a specific exception
M:System.String.GetHashCode;strings' hashcodes aren't stable
M:System.Windows.Forms.Control.Focus;use Activate for Forms, or Select otherwise