Skip to content

Releases: lecaillon/Preconditions

2.0.2

16 Feb 15:27
Compare
Choose a tag to compare

Bug fix

  • NotNullOrEmpty(IEnumerable) and HasNoNulls(IEnumerable) return the same type as the one passed in parameter

2.0.1

26 Jan 18:33
Compare
Choose a tag to compare

Bug fix

  • Add missing NotNullAttribute

2.0.0

04 Jan 16:41
dad974f
Compare
Choose a tag to compare

Features

  • Add support of the new .NET 6 CallerArgumentExpression attribute
  • Add Check.NotEmpty(Guid)
  • Add Check.True(Func<bool>)
  • Add Check.PositiveOrNull()
  • Add Check.NegativeOrNull()
  • Add Check.NotNegativeOrNull()

Breaking changes

  • Supports .NET 6 and .NET Standard 2.0 only
  • Remove Check.Zero()
  • Rename Check.NotEmpty(IEnumerable) in Check.NotNullOrEmpty(IEnumerable)

1.4.0

03 Dec 20:24
bbf7e0f
Compare
Choose a tag to compare

Features

  • Add Check.Negative(number)
  • Add Check.Zero(number)

1.3.0

18 Jul 23:09
Compare
Choose a tag to compare

Features

  • Add Check.Positive(number)

1.2.1

17 May 18:17
Compare
Choose a tag to compare

Features

  • Add support of .NET 4.5.1

1.2.0

29 Apr 21:40
Compare
Choose a tag to compare

Features

  • Add Check.DirectoryExists()

1.1.0

07 Mar 23:11
Compare
Choose a tag to compare

Features

  • Add Check.FileExists()

  • Migrate to Visual Studio 2017

Supported frameworks

  • All plateforms targeting .NET Standard 1.3 and higher

1.0.0

29 Nov 23:39
Compare
Choose a tag to compare

Features

  • Add Check.NotNullOrEmpty()
  • Add Check.NullableButNotEmpty()
  • Add Check.NotNull()
  • Add Check.NotEmpty()
  • Add Check.HasNoNulls()

Supported frameworks

  • .NET Core
  • .NET Framework
  • And all plateforms targeting .NET Standard 1.2 and higher