private bool IsValidTypeForAny(string parentType, string specializationType) { if (StringUtils.IsBlank(specializationType)) { return(false); } bool valid = AnyHelper.IsValidTypeForAny(parentType, specializationType); if (!valid) { // unqualify only the inner types string innerUnqualified = Hl7DataTypeName.UnqualifyInnerTypes(specializationType); valid = AnyHelper.IsValidTypeForAny(parentType, innerUnqualified); } if (!valid) { // unqualify both outer and inner types) string bothUnqualified = Hl7DataTypeName.Unqualify(specializationType); valid = AnyHelper.IsValidTypeForAny(parentType, bothUnqualified); } return(valid); }
private bool IsTimestamp(FormatContext context) { return("TS".Equals(Hl7DataTypeName.Unqualify(Hl7DataTypeName.GetParameterizedType(context.Type)))); }
private bool IsTimestampType(ParseContext context) { string type = GetParameterizedType(context); return("TS".Equals(Hl7DataTypeName.Unqualify(type))); }