Giter VIP home page Giter VIP logo

Comments (4)

siegfriedpammer avatar siegfriedpammer commented on June 18, 2024

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.

jmucchiello avatar jmucchiello commented on June 18, 2024

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.

siegfriedpammer avatar siegfriedpammer commented on June 18, 2024

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.

jmucchiello avatar jmucchiello commented on June 18, 2024

Thanks. I'll be pointing the devs to this post.

from ilspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.