# Encuentra el bug: .NET > Un fragmento de código. Encuentra el bug, o demuestra que no hay ninguno. Reto diario: 2026-08-19 (UTC) · Senior ```csharp using System.Collections.Generic; public class RequestCounter { private readonly Dictionary _counts = new(); private readonly object _lock = new(); public void Increment(string endpoint) { lock (_lock) { if (!_counts.ContainsKey(endpoint)) _counts[endpoint] = 0; _counts[endpoint]++; } } public int GetCount(string endpoint) { return _counts.TryGetValue(endpoint, out var count) ? count : 0; } } ``` ## Tu veredicto - Fallo de seguridad - Bug de lógica - Estilo de código - Sin problema Un intento por día. La respuesta aparece justo después. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/es/reto-diario/dotnet