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

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