Skip to content

5.2.0 (delayed)

Latest
Compare
Choose a tag to compare
@stakx stakx released this 30 Aug 20:41
· 2 commits to master since this release

⚠️ This release has not yet been published to NuGet due to an expired API token, which needs to be updated first.

Enhancements

  • Two new generic method overloads proxyGenerator.CreateClassProxy<TClass>([options], constructorArguments, interceptors) (@backstromjoel, #636)
  • Allow specifying which attributes should always be copied to proxy class by adding attribute type to AttributesToAlwaysReplicate. Previously only non-inherited, with Inherited=false, attributes were copied. (@shoaibshakeel381, #633)
  • Support for C# 8+ default interface methods in interface and class proxies without target (@stakx, #661)
  • DynamicProxy's public API has been augmented with nullable reference type annotations (@stakx, #668)

Bugfixes

  • ArgumentException: "Could not find method overriding method" with overridden class method having generic by-ref parameter (@stakx, #657)
  • ArgumentException: "Cannot create an instance of TEnum because Type.ContainsGenericParameters is true" caused by Enum constraint on method out parameter (@stakx, #658)