✅ Strange error when trying to retrun a class type variable through a public method - C#