Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 // <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));
 }