private bool TryGetExactMatch(IEnumerable <BindingType> xTypes, BindingType supportType, out BindingType exactMatch) { var netMatches = xTypes.Where(t => t.NetType.FullName == supportType.NetType.FullName).ToList(); if (netMatches.Count == 1) { exactMatch = netMatches[0]; return(true); } var javaMatches = xTypes.Where(t => t.JavaType.FullName == supportType.JavaType.FullName).ToList(); if (javaMatches.Count == 1) { exactMatch = javaMatches[0]; return(true); } exactMatch = BindingType.Empty; return(false); }
public TypeMapping(BindingType supportType, BindingType androidXType) { SupportType = supportType; AndroidXType = androidXType; }