Microsoft.CSharp.RuntimeBinder.Semantics.MethodTypeInferrer.ExactTypeArgumentInference C# (CSharp) Метод

ExactTypeArgumentInference() приватный Метод

private ExactTypeArgumentInference ( AggregateType pSource, AggregateType pDest ) : void
pSource AggregateType
pDest AggregateType
Результат void
        private void ExactTypeArgumentInference(
            AggregateType pSource, AggregateType pDest)

        {
            Debug.Assert(pSource != null);
            Debug.Assert(pDest != null);
            Debug.Assert(pSource.GetOwningAggregate() == pDest.GetOwningAggregate());

            TypeArray pSourceArgs = pSource.GetTypeArgsAll();
            TypeArray pDestArgs = pDest.GetTypeArgsAll();

            Debug.Assert(pSourceArgs != null);
            Debug.Assert(pDestArgs != null);
            Debug.Assert(pSourceArgs.size == pDestArgs.size);

            for (int arg = 0; arg < pSourceArgs.size; ++arg)
            {
                ExactInference(pSourceArgs.Item(arg), pDestArgs.Item(arg));
            }
        }