// Same, but different IGetTypeExpression/ITypeofExpression. No common base types private static ITypeElement GetTypeof(IGetTypeExpression getTypeExpression) { if (getTypeExpression != null) { var scalarType = getTypeExpression.ArgumentType.GetScalarType(); if (scalarType != null) return scalarType.GetTypeElement(); } return null; }
// Same, but different IGetTypeExpression/ITypeofExpression. No common base types private static ITypeElement GetTypeof(IGetTypeExpression getTypeExpression) { if (getTypeExpression != null) { var scalarType = getTypeExpression.ArgumentType.GetScalarType(); if (scalarType != null) { return(scalarType.GetTypeElement()); } } return(null); }