A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
private field where all assignments occur as part of the declaration or in a constructor in the same class can be readonly. Making a field readonly prevents unintended assignments after object initialization.
/// </summary>
public class XamlPlatformProvider : IPlatformProvider {
#if WINDOWS_UWP
private CoreDispatcher dispatcher;
Field 'dispatcher' can be 'readonly'.
private Dictionary<string, IXamlType> _xamlTypes = new Dictionary<string, IXamlType>();
private Dictionary<string, IXamlMember> _xamlMembers = new Dictionary<string, IXamlMember>();
private Dictionary<Type, string> _xamlTypeToStandardName = new Dictionary<Type, string>();
Field '_xamlTypeToStandardName' can be 'readonly'.
private Dictionary<string, IXamlType> _xamlTypes = new Dictionary<string, IXamlType>();
private Dictionary<string, IXamlMember> _xamlMembers = new Dictionary<string, IXamlMember>();
Field '_xamlMembers' can be 'readonly'.
public class FrameAdapter : INavigationService, IDisposable
{
#if WINDOWS_UWP
private SystemNavigationManager navigationManager;
Field 'navigationManager' can be 'readonly'.
private field where all assignments occur as part of the declaration or in a constructor in the same class can be readonly. Making a field readonly prevents unintended assignments after object initialization.
Please fix the following Code QL issues
src/Caliburn.Micro.Platform/XamlPlatformProvider.cs:20
src/Caliburn.Micro.Platform/Platforms/uap/XamlMetadataProvider.cs:91
src/Caliburn.Micro.Platform/Platforms/uap/XamlMetadataProvider.cs:90 }
src/Caliburn.Micro.Platform/Platforms/uap/XamlMetadataProvider.cs:156
src/Caliburn.Micro.Platform/Platforms/uap/XamlMetadataProvider.cs:89 return xamlMember; }
src/Caliburn.Micro.Platform/Platforms/uap/XamlMetadataProvider.cs:155
src/Caliburn.Micro.Platform/Platforms/uap/FrameAdapter.cs:20
src/Caliburn.Micro.Platform/Platforms/Maui/Windows/MauiPlatformProvider.cs:19
src/Caliburn.Micro.Platform/XamlPlatformProvider.cs:22
src/Caliburn.Micro.Platform/Bind.cs:56
src/Caliburn.Micro.Core/SimpleContainer.cs:18