Refatoracao csharp