Пример #1
0
        public new static T End(IAsyncResult result)
        {
            TypedCompletedAsyncResult <T> completedResult = result as TypedCompletedAsyncResult <T>;

            if (completedResult == null)
            {
                throw new ArgumentException("InvalidAsyncResult");
            }

            return(TypedAsyncResult <T> .End(completedResult));
        }