❔ Is there a way to improve this code Performance ? - C#