public static string GetFhirTypeForType(Type type) { if (!FhirCsTypeToString.ContainsKey(type)) { return(null); } else { return(FhirCsTypeToString[type]); } }
public static string GetResourceNameForType(Type resourceType) { if (!FhirCsTypeToString.ContainsKey(resourceType)) { return(null); } else { return(FhirCsTypeToString[resourceType]); } }
/// <summary>Returns the FHIR type name represented by the specified C# <see cref="Type"/>, or <c>null</c>.</summary> public static string GetFhirTypeNameForType(Type type) { // [WMR 20160421] Optimization //if (!FhirCsTypeToString.ContainsKey(type)) // return null; //else // return FhirCsTypeToString[type]; string result; FhirCsTypeToString.TryGetValue(type, out result); return(result); }