Пример #1
0
        /// <summary>
        /// Creates a new 8-dimensional canonical product.
        /// </summary>
        public static IProduct8 <T1, T2, T3, T4, T5, T6, T7, T8> Create <T1, T2, T3, T4, T5, T6, T7, T8>(IProduct8 <T1, T2, T3, T4, T5, T6, T7, T8> p)
        {
            if (Equals(p.GetType(), typeof(Product8 <T1, T2, T3, T4, T5, T6, T7, T8>)))
            {
                return(p);
            }

            return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3, p.ProductValue4, p.ProductValue5, p.ProductValue6, p.ProductValue7, p.ProductValue8));
        }
Пример #2
0
 /// <summary>
 /// Creates a new 8-dimensional canonical product.
 /// </summary>
 public static Position8 <P1, P2, P3, P4, P5, P6, P7, P8> Create <P1, P2, P3, P4, P5, P6, P7, P8>(IProduct8 <P1, P2, P3, P4, P5, P6, P7, P8> p)
 {
     return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3, p.ProductValue4, p.ProductValue5, p.ProductValue6, p.ProductValue7, p.ProductValue8));
 }