public string GetNameOrNull()
        {
            if (Type != null)
            {
                return(Type.FullName);
            }

            if (Src != null)
            {
                return(Src
                       .RemovePreFix("/")
                       .RemovePostFix(StringComparison.OrdinalIgnoreCase, "." + GetFileExtension())
                       .Replace("/", "."));
            }

            throw new AbpException("abp-script tag helper requires to set either src or type!");
        }