public static bool IsFunctionContained(this IEntityVariable @this) { TemplateDefinition scope = @this.EnclosingScope <TemplateDefinition>(); return(scope.IsFunction()); }
public static bool IsTypeContained(this IEntityVariable @this) { return(@this.ContainingType() != null); }