Microsoft.CSharp.RuntimeBinder.Semantics.AggregateType.AreAllTypeArgumentsUnitTypes C# (CSharp) Method

AreAllTypeArgumentsUnitTypes() public method

public AreAllTypeArgumentsUnitTypes ( TypeArray typeArray ) : bool
typeArray TypeArray
return bool
        public bool AreAllTypeArgumentsUnitTypes(TypeArray typeArray)
        {
            if (typeArray.Size == 0)
            {
                return true;
            }

            for (int i = 0; i < typeArray.size; i++)
            {
                Debug.Assert(typeArray.Item(i) != null);
                if (!typeArray.Item(i).IsOpenTypePlaceholderType())
                {
                    return false;
                }
            }
            return true;
        }