internal static bool IsAssignableFrom(EdmType firstType, EdmType secondType) { if (secondType == null) { return(false); } if (!firstType.Equals((object)secondType)) { return(Helper.IsSubtypeOf(secondType, firstType)); } return(true); }
// <summary> // check to see if otherType is among the base types, // </summary> // <returns> if otherType is among the base types, return true, otherwise returns false. when othertype is same as the current type, return false. </returns> internal virtual bool IsSubtypeOf(EdmType otherType) { return(Helper.IsSubtypeOf(this, otherType)); }