/// <summary>Get the API scalar type by CLR type object.</summary>
        /// <typeparam name="TScalar">CLR type to lookup the API scalar type by.</typeparam>
        /// <returns>The API scalar type in the API schema, otherwise an exception is thrown.</returns>
        /// <exception cref="ApiSchemaException"></exception>
        public static IApiScalarType GetApiScalarType <TScalar>(this IApiSchema apiSchema)
        {
            Contract.Requires(apiSchema != null);

            var clrType = typeof(TScalar);

            return(apiSchema.GetApiScalarType(clrType));
        }