Ejemplo n.º 1
0
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// columnwidthchangedeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this ColumnWidthChangedEventHandler columnwidthchangedeventhandler, Object sender, ColumnWidthChangedEventArgs e, AsyncCallback callback)
        {
            if (columnwidthchangedeventhandler == null)
            {
                throw new ArgumentNullException("columnwidthchangedeventhandler");
            }

            return(columnwidthchangedeventhandler.BeginInvoke(sender, e, callback, null));
        }