Ejemplo n.º 1
0
 private static void AssertCode(this ScriptContext context)
 {
     if (!context.ScriptLanguages.Contains(ScriptCode.Language))
     {
         throw new NotSupportedException($"ScriptCode.Language is not registered in {context.GetType().Name}.{nameof(context.ScriptLanguages)}");
     }
 }