Grace icon indicating copy to clipboard operation
Grace copied to clipboard

Disable evaluation of delegates?

Open teinarss opened this issue 4 years ago • 1 comments

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);



teinarss avatar Sep 26 '21 17:09 teinarss

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).

ipjohnson avatar Oct 26 '21 11:10 ipjohnson