BraintreeEncryption.Library.BouncyCastle.Util.Collections.CollectionUtilities.CheckElementsAreOfType C# (CSharp) Méthode

CheckElementsAreOfType() public static méthode

public static CheckElementsAreOfType ( IEnumerable e, Type t ) : bool
e IEnumerable
t System.Type
Résultat bool
        public static bool CheckElementsAreOfType(
			IEnumerable e,
			Type		t)
        {
            foreach (object o in e)
            {
                if (!t.IsInstanceOfType(o))
                    return false;
            }
            return true;
        }