InlineIL.Fody Versions Save

Inject arbitrary IL code at compile time.

v1.9.0-pre2

1 month ago
  • Renamed TypeRef.FromDll to TypeRef.FromDllFile
  • Added a TypeRef.FromDllFile overload with a Type parameter
  • Added support for typeof(...).FullName recognition

v1.9.0-pre1

1 month ago
  • Added an experimental TypeRef.FromDll method, see #31

v1.8.0

4 months ago
  • Updated Fody to v6.8.0, which supports RVA field alignment
  • Added warnings for unused locals
  • Changed parameter of IL.PushInRef to use ref readonly instead of in, to make the reference usage stand out at the call site

v1.7.4

1 year ago
  • Fixed an internal error which could occur when handling methods with generic type specs (#29)

v1.7.3

1 year ago
  • Added support for C# 11 codegen to MethodRef.FromDelegate (which emits cached delegate instances)
  • Updated Fody to v6.6.4

v1.7.2

1 year ago
  • Fixed compatibility with SDK v7.0.100-preview.7 (#26)
  • Updated Fody to v6.6.3

v1.7.1

2 years ago
  • Improved the IL.Push stack validator
  • Updated Fody to v6.5.2

v1.7.0

2 years ago
  • Changed the way calls to IL.Push are validated (#25). The new algorithm is more rigorous, so code that happenned to work previously could now be rejected.
  • Added a IL.EnsureLocal method which forces the compiler to emit an IL local for the local variable supplied as parameter, instead of keeping it on the evaluation stack. This can enable the local to be used with IL.Push in optimized builds.
  • Added an overload of IL.Emit.No which takes an enum argument.
  • Adjusted the nullability of reference types for arguments of IL.Push* methods.
  • Updated Fody to v6.5.1

v1.6.0

3 years ago
  • Added MethodRef.Operator methods (#22)
  • Added MethodRef.Method and constructor overloads that include the method return type in the constraints (can be useful for conversion operators if you don't want to use MethodRef.Operator)
  • Updated Fody to v6.3.0

v1.5.0

3 years ago
  • Added MethodRef.FromDelegate (#21)