GetByType() 공개 메소드

public GetByType ( Type type ) : XamlType
type System.Type
리턴 XamlType
예제 #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));
        }
예제 #2
0
 private XamlType LookupType()
 {
     return(TypeRepository.GetByType(getter.ReturnType));
 }