cecil
cecil copied to clipboard
Cecil is a library to inspect, modify and create .NET programs and libraries.
``` public static string GetFullyQualifiedName (this Stream self) { #if !SILVERLIGHT var file_stream = self as FileStream; if (file_stream == null) return string.Empty; return Path.GetFullPath (file_stream.Name); #else return string.Empty; #endif...
Import for Cecil types defined in another module of the same assembly doesn't work.
Cecil currently does not support reading or writing custom attributes declared on a TypeRef or a MemberRef.
The Microsoft Reflection.Emit library allows to specify the filename of a dynamic module, that may be different from its name, but Cecil provide no way to do the same. (note:...
This is the minimal change resolution to the issue, as outlined there. The test fell into no obvious existing category, so I put it in a new catch-all fixture. The...
The following code ```csharp namespace NullConst { public class Program { public static void Main () { new Program ().MakeConst (); } public void MakeConst () { const IList thing...
This adds support for generic attributes, added in C# 10. This is needed to fix a linker crash on runtime tests that used generic attributes: https://github.com/dotnet/linker/issues/2963
Because this isn't currently possible, cloning instructions or pre-making instructions before assigning their operator is hell. It's an unnecessary limitation that simply shouldn't exist.
We encountered this issue while working on [Everest](https://github.com/EverestAPI/Everest), the modding API for the video game Celeste. Everest patches the game using [MonoMod](https://github.com/MonoMod/MonoMod/), which relies heavily on Mono.Cecil. We've been depending...
This commit refines the system type import functionality in Mono.Cecil to ensure that system types are resolved efficiently and do not introduce unnecessary assembly references. By aligning the import logic...