App1.App1_WindowsPhone_XamlTypeInfo.XamlTypeInfoProvider.GetXamlTypeByName C# (CSharp) Method

GetXamlTypeByName() public method

public GetXamlTypeByName ( string typeName ) : global::Windows.UI.Xaml.Markup.IXamlType
typeName string
return global::Windows.UI.Xaml.Markup.IXamlType
        public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByName(string typeName)
        {
            if (string.IsNullOrEmpty(typeName))
            {
                return null;
            }
            global::Windows.UI.Xaml.Markup.IXamlType xamlType;
            if (_xamlTypeCacheByName.TryGetValue(typeName, out xamlType))
            {
                return xamlType;
            }
            int typeIndex = LookupTypeIndexByName(typeName);
            if(typeIndex != -1)
            {
                xamlType = CreateXamlType(typeIndex);
            }
            if (xamlType != null)
            {
                _xamlTypeCacheByName.Add(xamlType.FullName, xamlType);
                _xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType);
            }
            return xamlType;
        }