Comments (1)
My current workaround (not really safe):
public static Instruction CreateInstructionRaw(OpCode opCode, object? operand = null)
{
var instruction = (Instruction)RuntimeHelpers.GetUninitializedObject(typeof(Instruction));
instruction.OpCode = opCode;
instruction.Operand = operand;
return instruction;
}
from cecil.
Related Issues (20)
- Problem with weawing
- Possible ArgumentOutOfRangeException when there are 65535 params in metadata table HOT 3
- how to modify PrivateImplementationDetails HOT 1
- Remove link in the about section in this repo HOT 1
- Mono.ArgumentNullOrEmptyException When trying to write embedded symbols assembly to stream
- How can I set constant value to an enum field when creating a new enum
- How can i read uncompiled CS files HOT 2
- Bug: PInvoke information is not saved to assembly properly
- failed to add arguments to attributes that accepts objects HOT 1
- Type parameter constraint in patched class breaks on newer Mono.Cecil version HOT 7
- The MVID is not added to the sections HOT 1
- it will throw exception about failed to resolve TupleElementNamesAttribute:.ctor sometime
- Changes so Mono.Cecil will run when FIPS compliance is required
- `IsValueType` not set correctly for custom attribute fields of an enum type HOT 2
- Enum value in CustomAttributeArgument
- Is this locking correct in ModuleDefinition? HOT 1
- Incorrect metadata token fixing in `GetTypeSpecification` HOT 1
- stfld got a wrong operand in a generic type.
- `MethodDebugInformation.GetSequencePoint` is a serious performance bottleneck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cecil.