private static string GetMappingName(Mapping mapping)
{
if (mapping is MembersMapping)
return "(method)";
else if (mapping is TypeMapping)
return ((TypeMapping)mapping).TypeDesc.FullName;
else
throw new ArgumentException(SR.XmlInternalError, nameof(mapping));
}