GetByType() public method

public GetByType ( Type type ) : XamlType
type System.Type
return XamlType
Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 private XamlType LookupType()
 {
     return(TypeRepository.GetByType(getter.ReturnType));
 }