11 lines
361 B
C#
11 lines
361 B
C#
using TranslationScope = DevDisciples.Json.Tools.Json2CSharpTranslator.Context.TranslationScope;
|
|
|
|
namespace DevDisciples.Json.Tools.Extensions;
|
|
|
|
public static class TranslationScopeExtensions
|
|
{
|
|
public static bool IsChildOf(this Stack<TranslationScope> stack, TranslationScope type)
|
|
{
|
|
return stack.Count > 1 && stack.ElementAt(1) == type;
|
|
}
|
|
} |