/// <summary>Returns the assembly name of the class implemented by this script.</summary>
        /// <param name="script">The script to search for assembly in.</param>
        /// <returns>
        /// The assembly name without the .dll extension, or an empty string if the assembly was not found.
        /// </returns>
        [PublicAPI, NotNull] public static string GetAssemblyName(this MonoScript script)
        {
            string assemblyName = script.Internal_GetAssemblyName();
            int    lastDotIndex = assemblyName.LastIndexOf('.');

            return(lastDotIndex == -1 ? string.Empty : assemblyName.Substring(0, lastDotIndex));
        }