public override void GuardTypeSafety() { if (Lhs == null || Rhs == null || Lhs.ReturnType == null || Rhs.ReturnType == null) { return; } if (Lhs.ReturnType != Rhs.ReturnType) { throw ConvertException.StaticTypeSafety(Lhs.ReturnType, Rhs.ReturnType, Rhs.ToString()); } Lhs.GuardTypeSafety(); Rhs.GuardTypeSafety(); }
public override void GuardTypeSafety() { if (Lhs == null || Lhs.ReturnType == null) { return; } if (Lhs.ReturnType != typeof(string)) { throw ConvertException.StaticTypeSafety(typeof(bool), Lhs.ReturnType, Lhs.ToString()); } Lhs.GuardTypeSafety(); if (Rhs == null || Rhs.ReturnType == null) { return; } Rhs.GuardTypeSafety(); }