public static void Set <TOne, UOne>(TOne one, UOne otherOne) where TOne : IOneToOne <UOne> { one.One = otherOne; IOneToOne <TOne> otherSide = otherOne as IOneToOne <TOne>; if (otherSide != null) { otherSide.One = one; } }
public static UOne Get <TOne, UOne>(IOneToOne <UOne> one) { return(one.One); }