Comments (4)
Can you please share the binary? The modifier might be missing in the metadata.
We have test cases that cover this, so diagnosing this will require the binary. If you do not want to share the binary, you could simply provide the IL code of the class.
If you look at the IL code in ILSpy look for this attribute:
.param [1]
.custom instance void [System.Runtime]System.ParamArrayAttribute::.ctor() = (
01 00 00 00
)
If it's not there, the attribute is missing in metadata and ILSpy is correct and works as expected.
from ilspy.
I can't share the binary. It's part of a commercially released game.
Where in ILSpy would I look for that text? And if the field you are looking for isn't there, what might cause it to be missing? I see the text you mention in other methods that use the params keyword.
This is the IL with C# view of the method:
.method public hidebysig newslot virtual
instance object Call (
object[] args
) cil managed
{
// Method begins at RVA 0x3e10d
// Header size: 1
// Code size: 2 (0x2)
.maxstack 8
// return null;
IL_0000: ldnull
IL_0001: ret
} // end of method Mod::Call
from ilspy.
The parameter attribute should be right above the // Method begins at
comment.
So ILSpy is displaying exactly what is there in the binary. This is not a bug, it's working as intended.
from ilspy.
Thanks. I'll be pointing the devs to this post.
from ilspy.
Related Issues (20)
- Settings panel shows strange hover/selection behavior
- Decompiler Settings: Checkbox in group header does not reflect state of the group
- Weird cast HOT 4
- Failed to decompile file .NETCoreApp v8 HOT 7
- Quicksearch box font cut below HOT 6
- It is not possible to use NRT attributes in the ILSpy project HOT 4
- FR: IL view on the GUI HOT 2
- FR: Symbols removal & renaming in the ILSpy GUI HOT 1
- Empty dotnet version folders lead to problems with resolving core assemblies in DotNetCorePathFinder HOT 1
- Assert at ICSharpCode.Decompiler.CSharp.Transforms.DeclareVariables.ResolveCollisions() HOT 4
- ILSpy crash
- Can't export project: System.UnauthorizedAccessException: Access to the path 'xxxx' is denied.
- Open class in new tab by default option HOT 2
- Make it target a specific compiler, and add a tool to compare the recompiled IL to the original IL HOT 6
- Export C# code containing IL that can be re-assembled with InlineIL.Fody (https://github.com/ltrzesniewski/InlineIL.Fody) HOT 4
- Missing variable declarations in repeated nested for-loops HOT 3
- Sorry, we crashed: System.ArgumentException: Unsupported table index: FieldPtr HOT 5
- ILSpy crashes when it parses deconstruction constructs
- Support Alt + NumpadLeft/Right for backward/forward navigation
- Missing variable declaration in nested for-loop after many other loops
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 ilspy.