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