Exemple #1
0
        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;
            }
        }
Exemple #2
0
 public static UOne Get <TOne, UOne>(IOneToOne <UOne> one)
 {
     return(one.One);
 }