diff --git a/src/BannedSymbols.BannedApiAnalyzers.txt b/src/BannedSymbols.BannedApiAnalyzers.txt index 2a8d9aca85..ccd0431015 100644 --- a/src/BannedSymbols.BannedApiAnalyzers.txt +++ b/src/BannedSymbols.BannedApiAnalyzers.txt @@ -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