public FragmentInfo Add(Fragment F, string MessageId) { FragmentInfo FI = null; if (F != null && !Fragments.Any(m => m.Fragment.Equals(F))) { Fragments.Add(FI = new FragmentInfo(F, MessageId)); FI = (FragmentInfo)FI.Clone(); } return(FI); }