App1.App1_Windows_XamlTypeInfo.XamlTypeInfoProvider.GetXamlTypeByType C# (CSharp) Méthode

GetXamlTypeByType() public méthode

public GetXamlTypeByType ( global type ) : global::Windows.UI.Xaml.Markup.IXamlType
type global
Résultat global::Windows.UI.Xaml.Markup.IXamlType
        public global::Windows.UI.Xaml.Markup.IXamlType GetXamlTypeByType(global::System.Type type)
        {
            global::Windows.UI.Xaml.Markup.IXamlType xamlType;
            if (_xamlTypeCacheByType.TryGetValue(type, out xamlType))
            {
                return xamlType;
            }
            int typeIndex = LookupTypeIndexByType(type);
            if(typeIndex != -1)
            {
                xamlType = CreateXamlType(typeIndex);
            }
            if (xamlType != null)
            {
                _xamlTypeCacheByName.Add(xamlType.FullName, xamlType);
                _xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType);
            }
            return xamlType;
        }