コード例 #1
0
ファイル: WeaverConfig.cs プロジェクト: two06/InlineIL.Fody
 private static bool ShouldGenerateSequencePoints(WeaverConfigOptions config, ModuleDefinition module)
 {
     return(config.SequencePoints switch
     {
         WeaverConfigOptions.SequencePointsBehavior.False => false,
         WeaverConfigOptions.SequencePointsBehavior.True => true,
         WeaverConfigOptions.SequencePointsBehavior.Debug => module.IsDebugBuild(),
         WeaverConfigOptions.SequencePointsBehavior.Release => !module.IsDebugBuild(),
         _ => throw new ArgumentOutOfRangeException()
     });
コード例 #2
0
 public WeaverLogger(ILogger log, WeaverConfigOptions config)
 {
     _log    = log;
     _config = config;
 }