Example #1
0
        public XamlType GetByFullAddress(XamlTypeName xamlTypeName)
        {
            var ns = namespaceRegistry.GetNamespace(xamlTypeName.Namespace);

            if (ns == null)
            {
                throw new TypeNotFoundException($"Error trying to resolve a XamlType: Cannot find the namespace '{xamlTypeName.Namespace}'");
            }

            var correspondingType = ns.Get(xamlTypeName.Name);

            if (correspondingType != null)
            {
                return GetByType(correspondingType);
            }

            throw new TypeNotFoundException($"Error trying to resolve a XamlType: The type {xamlTypeName.Name} has not been found into the namespace '{xamlTypeName.Namespace}'");
        }
 public XamlType GetWithFullAddress(XamlTypeName xamlTypeName)
 {
     throw new NotImplementedException();
 }
 public XamlType GetByFullAddress(XamlTypeName xamlTypeName)
 {
     return inner.GetByFullAddress(xamlTypeName);
 }