コード例 #1
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// typefilter.BeginInvoke(m, filterCriteria, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this TypeFilter typefilter, Type m, Object filterCriteria, AsyncCallback callback)
        {
            if (typefilter == null)
            {
                throw new ArgumentNullException("typefilter");
            }

            return(typefilter.BeginInvoke(m, filterCriteria, callback, null));
        }