private XamlType LookupType() { var underlyingType = DeclaringType.UnderlyingType; var property = underlyingType.GetRuntimeProperty(Name); property.ThrowIfNull(() => new XamlParseException($"Cannot find a property named \"{Name}\" in the type {underlyingType}")); return(TypeRepository.GetXamlType(property.PropertyType)); }
private XamlType LookupType() { return(TypeRepository.GetXamlType(getter.ReturnType)); }