Demo entry 6645541

1234567890

   

Submitted by anonymous on Oct 10, 2017 at 23:43
Language: C#. Code size: 521 Bytes.

    try
    {
        var speedLimitResult = command.ExecuteScalar();
        if (speedLimitResult is DBNull) return 0; // Точка не найдена в БД

        var integerResult = 0;
        try
        {
            integerResult = (int) speedLimitResult;
        }
        catch (Exception)
        {
            TotalExceptionsCount++;
            ErrorPoints.Add();
            throw new Exception();
        }
        return integerResult;
    }
    catch (Exception)
    {
        return 0;
    }

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).