namespace Jtr.Tools.Extensions; public static class TranslationScopeExtensions { public static bool IsChildOf(this Stack stack, Json2CSharpTranslator.Context.TranslationScope type) { return stack.Count > 1 && stack.ElementAt(1) == type; } }