Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable evaluation of delegates? #284

Open
teinarss opened this issue Sep 26, 2021 · 1 comment
Open

Disable evaluation of delegates? #284

teinarss opened this issue Sep 26, 2021 · 1 comment

Comments

@teinarss
Copy link

Is it possible to disable evaluation of delegates?

Test case:

public class DiTest
{
  public DiTest(Func<string> test)
  {
  }
}

...
var a1 = new { test = new Func<string>(() => "hello world") };

container.Locate<DiTest>(a1);

@ipjohnson
Copy link
Owner

Sorry for the very late response. There's not a great way for you to do what you're looking for.

I could offer some suggestions but they all require some configuration and probably are not what you're looking for (plus I'm a month late responding).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants