GetByType() public method

public GetByType ( Type type ) : XamlType
type System.Type
return XamlType
コード例 #1
0
ファイル: Member.cs プロジェクト: nagyistge/OmniXAML
        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));
 }