MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsAllow­Compile­Time­Dynamic­Code
Open sandboxFocus

TestOptions.AllowCompileTimeDynamicCode Property

AllowCompileTimeDynamicCode

Gets or sets a value indicating whether the test is allowed to have compile-time code that has dynamic calls. To enable this option in a test, add this comment to your test file: // @AllowCompileTimeDynamicCode.

Declaration
public Nullable<bool> AllowCompileTimeDynamicCode { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>