public static bool IsAtArrayElement(IFhirReader reader, string name, bool isPolymorph = false) { string currElem = reader.CurrentElementName; if (!reader.IsAtArrayMember()) return false; if (!isPolymorph) return currElem == name; else return currElem.StartsWith(name); }
public static bool IsAtArrayElement(IFhirReader reader, string name, bool isPolymorph = false) { string currElem = reader.CurrentElementName; if (!reader.IsAtArrayMember()) { return(false); } if (!isPolymorph) { return(currElem == name); } else { return(currElem.StartsWith(name)); } }