Пример #1
0
        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));
        }
Пример #2
0
 private XamlType LookupType()
 {
     return(TypeRepository.GetXamlType(getter.ReturnType));
 }