Sigil-vNext
4.8.21
See the version list below for details.
dotnet add package Sigil-vNext --version 4.8.21
NuGet\Install-Package Sigil-vNext -Version 4.8.21
<PackageReference Include="Sigil-vNext" Version="4.8.21" />
paket add Sigil-vNext --version 4.8.21
#r "nuget: Sigil-vNext, 4.8.21"
// Install Sigil-vNext as a Cake Addin
#addin nuget:?package=Sigil-vNext&version=4.8.21
// Install Sigil-vNext as a Cake Tool
#tool nuget:?package=Sigil-vNext&version=4.8.21
Sigil
A fail-fast, validating helper for DynamicMethod and ILGenerator.
Usage
Sigil is a roughly 1-to-1 replacement for ILGenerator. Rather than calling ILGenerator.Emit(OpCode, ...), you call Emit<DelegateType>.OpCode(...).
Unlike ILGenerator, Sigil will fail as soon as an error is detected in the emitted IL.
Performance
Since Sigil performs a great deal of verification it is necessarily slower than using ILGenerator directly. That being said, Sigil should be adequately performant for most purposes.
Sigil may be too slow for practical use if you need:
- More than ~100 labels and branches
- Methods with more than ~10,000 instructions
Some costly optimizations can be disabled via the OptimizationOptions enumeration, and some validation steps can be deferred via the ValidationOptions enumeration.
Unsupported Operations
Fault blocks are not supported because of their rarity (there is no C# equivalent) and because they are forbidden in dynamic methods.
Sigil does not support Calli when disassembling delegates, as the C# compilers will not emit that instruction it is currently untestable.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETFramework 4.5.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.6.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.7.2
- Packaging.Targets (>= 0.1.45)
-
.NETFramework 4.8
- Packaging.Targets (>= 0.1.45)
-
.NETStandard 1.5
- NETStandard.Library (>= 1.6.1)
- Packaging.Targets (>= 0.1.45)
- System.Reflection (>= 4.3.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.Metadata (>= 1.6.0)
- System.Reflection.Primitives (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.5.1)
-
.NETStandard 2.0
- Packaging.Targets (>= 0.1.45)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.Metadata (>= 1.6.0)
- System.Reflection.TypeExtensions (>= 4.5.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sigil-vNext:
Package | Downloads |
---|---|
LightStep.Trace.ClrProfiler.Managed
Automatic instrumentation library used by .NET Tracer for Datadog APM. Requires separate native library that implements the CLR Profiling API. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Updates to support .NET 4.5.2, 4.6.2, 4.7.2, 4.8 and .NET Standard 1.5 and 2.0