GithubHelp home page GithubHelp logo

Comments (11)

SimonCropp avatar SimonCropp commented on August 27, 2024

why does nullguard code in the loader break it?

from costura.

distantcam avatar distantcam commented on August 27, 2024

https://github.com/Fody/Costura/blob/master/Template/ILTemplate.cs#L158

ReadExistingAssembly in the template has to be able to return null.

We could add an attribute. Not sure about the best approach and too brain-dead right now to think about it.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

how about documenting the loader with a compiler generated attribute and then dont process compiler generated stuff in nullguard??

from costura.

distantcam avatar distantcam commented on August 27, 2024

properties are very often compiler gen'd. I'd hate to lose nullguard on properties.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

when props are compiler gen'ed for they have the compiler gen'd attribute?

On Mon, May 6, 2013 at 9:30 PM, Cameron MacFarland <[email protected]

wrote:

properties are very often compiler gen'd. I'd hate to lose nullguard on
properties.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-17476938
.

from costura.

distantcam avatar distantcam commented on August 27, 2024

Autoproperties do, yep.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

well the property doesnt have CompilerGeneratedAttribute but the getter and setter do.
so if NullGuard had special handling for properties it would work ie

  • process all methods that dont have CompilerGeneratedAttribute
  • process all getters and setters of properties

Just throwing out ideas here :)

from costura.

distantcam avatar distantcam commented on August 27, 2024

That could work. I'd also check iterators and async methods for the CompilerGeneratedAttribute too. I know the internal state machine gets the attribute, but I'm not sure about the method that invokes the state machine.

from costura.

SimonCropp avatar SimonCropp commented on August 27, 2024

yield and async result in the classes having the CompilerGeneratedAttribute. but none of the methods of those classes have the attribute.

So do we make some assumptions and move forward?

from costura.

distantcam avatar distantcam commented on August 27, 2024

I don't see why not. I can work on it this weekend unless you get to it sooner.

from costura.

distantcam avatar distantcam commented on August 27, 2024

NullGuard already ignores types that have the CompilerGeneratedAttribute. So all that should be needed is to add the attribute to the Costura loader type.

from costura.

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.