merge into pattern - C#