//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using System.Diagnostics.CodeAnalysis;
namespace DigitalSystem.WinUI
{
public partial class App : global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
private global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlMetaDataProvider __appProvider;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlMetaDataProvider _AppProvider
{
get
{
if (__appProvider == null)
{
__appProvider = new global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlMetaDataProvider();
}
return __appProvider;
}
}
///
/// GetXamlType(Type)
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type)
{
return _AppProvider.GetXamlType(type);
}
///
/// GetXamlType(String)
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName)
{
return _AppProvider.GetXamlType(fullName);
}
///
/// GetXmlnsDefinitions()
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions()
{
return _AppProvider.GetXmlnsDefinitions();
}
}
}
namespace DigitalSystem.DigitalSystem_XamlTypeInfo
{
///
/// Main class for providing metadata for the app or library
///
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class XamlMetaDataProvider : global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider
{
private global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlTypeInfoProvider _provider = null;
private global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlTypeInfoProvider Provider
{
get
{
if (_provider == null)
{
_provider = new global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlTypeInfoProvider();
}
return _provider;
}
}
///
/// GetXamlType(Type)
///
[global::Windows.Foundation.Metadata.DefaultOverload]
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type)
{
return Provider.GetXamlTypeByType(type);
}
///
/// GetXamlType(String)
///
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName)
{
return Provider.GetXamlTypeByName(fullName);
}
///
/// GetXmlnsDefinitions()
///
public global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions()
{
return new global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[0];
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2505")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal partial class XamlTypeInfoProvider
{
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlTypeByType(global::System.Type type)
{
global::Microsoft.UI.Xaml.Markup.IXamlType xamlType;
lock (_xamlTypeCacheByType)
{
if (_xamlTypeCacheByType.TryGetValue(type, out xamlType))
{
return xamlType;
}
int typeIndex = LookupTypeIndexByType(type);
if(typeIndex != -1)
{
xamlType = CreateXamlType(typeIndex);
}
var userXamlType = xamlType as global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlUserType;
if(xamlType == null || (userXamlType != null && userXamlType.IsReturnTypeStub && !userXamlType.IsLocalType))
{
global::Microsoft.UI.Xaml.Markup.IXamlType libXamlType = CheckOtherMetadataProvidersForType(type);
if (libXamlType != null)
{
if(libXamlType.IsConstructible || xamlType == null)
{
xamlType = libXamlType;
}
}
}
if (xamlType != null)
{
_xamlTypeCacheByName.Add(xamlType.FullName, xamlType);
_xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType);
}
}
return xamlType;
}
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlTypeByName(string typeName)
{
if (string.IsNullOrEmpty(typeName))
{
return null;
}
global::Microsoft.UI.Xaml.Markup.IXamlType xamlType;
lock (_xamlTypeCacheByType)
{
if (_xamlTypeCacheByName.TryGetValue(typeName, out xamlType))
{
return xamlType;
}
int typeIndex = LookupTypeIndexByName(typeName);
if(typeIndex != -1)
{
xamlType = CreateXamlType(typeIndex);
}
var userXamlType = xamlType as global::DigitalSystem.DigitalSystem_XamlTypeInfo.XamlUserType;
if(xamlType == null || (userXamlType != null && userXamlType.IsReturnTypeStub && !userXamlType.IsLocalType))
{
global::Microsoft.UI.Xaml.Markup.IXamlType libXamlType = CheckOtherMetadataProvidersForName(typeName);
if (libXamlType != null)
{
if(libXamlType.IsConstructible || xamlType == null)
{
xamlType = libXamlType;
}
}
}
if (xamlType != null)
{
_xamlTypeCacheByName.Add(xamlType.FullName, xamlType);
_xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType);
}
}
return xamlType;
}
public global::Microsoft.UI.Xaml.Markup.IXamlMember GetMemberByLongName(string longMemberName)
{
if (string.IsNullOrEmpty(longMemberName))
{
return null;
}
global::Microsoft.UI.Xaml.Markup.IXamlMember xamlMember;
lock (_xamlMembers)
{
if (_xamlMembers.TryGetValue(longMemberName, out xamlMember))
{
return xamlMember;
}
xamlMember = CreateXamlMember(longMemberName);
if (xamlMember != null)
{
_xamlMembers.Add(longMemberName, xamlMember);
}
}
return xamlMember;
}
global::System.Collections.Generic.Dictionary
_xamlTypeCacheByName = new global::System.Collections.Generic.Dictionary();
global::System.Collections.Generic.Dictionary
_xamlTypeCacheByType = new global::System.Collections.Generic.Dictionary();
global::System.Collections.Generic.Dictionary
_xamlMembers = new global::System.Collections.Generic.Dictionary();
string[] _typeNameTable = null;
global::System.Type[] _typeTable = null;
private void InitTypeTables()
{
_typeNameTable = new string[35];
_typeNameTable[0] = "Microsoft.Maui.MauiWinUIApplication";
_typeNameTable[1] = "Microsoft.UI.Xaml.Application";
_typeNameTable[2] = "Microsoft.UI.Xaml.LaunchActivatedEventArgs";
_typeNameTable[3] = "System.IServiceProvider";
_typeNameTable[4] = "Microsoft.Maui.IApplication";
_typeNameTable[5] = "Microsoft.Maui.Controls.Platform.ShellView";
_typeNameTable[6] = "Microsoft.Maui.Platform.RootNavigationView";
_typeNameTable[7] = "Microsoft.Maui.Platform.MauiNavigationView";
_typeNameTable[8] = "Microsoft.UI.Xaml.Controls.NavigationView";
_typeNameTable[9] = "Microsoft.UI.Xaml.Controls.ContentControl";
_typeNameTable[10] = "Microsoft.UI.Xaml.Thickness";
_typeNameTable[11] = "System.ValueType";
_typeNameTable[12] = "Object";
_typeNameTable[13] = "Boolean";
_typeNameTable[14] = "Microsoft.UI.Xaml.Controls.AutoSuggestBox";
_typeNameTable[15] = "Double";
_typeNameTable[16] = "Microsoft.UI.Xaml.UIElement";
_typeNameTable[17] = "Microsoft.UI.Xaml.Controls.NavigationViewDisplayMode";
_typeNameTable[18] = "System.Enum";
_typeNameTable[19] = "System.Collections.Generic.IList`1