BraintreeEncryption.Library.BouncyCastle.Util.Collections.CollectionUtilities.CheckElementsAreOfType C# (CSharp) Method

CheckElementsAreOfType() public static method

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