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

            var clrType = typeof(T);

            return(apiSchema.GetApiNamedType(clrType));
        }