/// <summary>
        /// Creates the <see cref="NIType"/> for calling the .NET method <see cref="CalculateTotalLengthCallback.CalculateTotalLength"/>.
        /// </summary>
        /// <returns></returns>
        private NIType CreateMethodType()
        {
            System.Reflection.MethodBase method = typeof(CalculateTotalLengthCallback).GetMethod(nameof(CalculateTotalLengthCallback.CalculateTotalLength));
            NIType declaringType = DotNetNITypeHelper.CreateNITypeForDotNetType(typeof(CalculateTotalLengthCallback));
            NIType functionType  = method.ConvertDotNetMethodInfoToNITypeDeprecated(declaringType);

            functionType = NIMethodCallTarget.AddDoesNotImplementMocCompilerAttribute(functionType);
            return(functionType);
        }