Opinion on the code i've written - C#