TypeExtensions.cs 265 B

12345678910
  1. using System;
  2. namespace PetaPoco.Tests.Integration
  3. {
  4. public static class TypeExtensions
  5. {
  6. public static bool IsNullableType(this Type source)
  7. => source.IsGenericType && source.GetGenericTypeDefinition() == typeof(Nullable<>);
  8. }
  9. }