Assumes.cs 512 B

12345678910111213141516
  1. using System.Diagnostics;
  2. using System.Diagnostics.CodeAnalysis;
  3. namespace NetMQ
  4. {
  5. internal static class Assumes
  6. {
  7. #pragma warning disable CS8777 // Parameter must have a non-null value when exiting.
  8. [Conditional("DEBUG")]
  9. public static void NotNull<T>([NotNull] T o) where T : class?
  10. {
  11. //Debug.Assert(o is object, $"Unexpected null of type {typeof(T).Name}");
  12. }
  13. #pragma warning restore CS8777 // Parameter must have a non-null value when exiting.
  14. }
  15. }