Hi Kamil,
I suggest you ask these generic programming related questions from C# forums. Usually similar questions have already been asked and answered, like your latest question is answered
here. So, you don't even have to ask, only find the question and answer by simple googling.