how can i accept only array of 2 doubles? - C#