tik4net.Api.ApiCommand.EnsureSingleResponse C# (CSharp) Метод

EnsureSingleResponse() приватный Метод

private EnsureSingleResponse ( IEnumerable response ) : tik4net.Api.ApiSentence
response IEnumerable
Результат tik4net.Api.ApiSentence
        private ApiSentence EnsureSingleResponse(IEnumerable<ApiSentence> response)
        {
            if (response.Count() != 1)
                throw new TikConnectionException("Single response sentence expected.", this, response.Cast<ITikSentence>());

            return response.Single();
        }