Files
NebulaLauncher/Nebula.Launcher/ViewHelper/ViewModelRegisterAttribute.cs
2025-01-14 22:10:16 +03:00

16 lines
369 B
C#

using System;
namespace Nebula.Launcher.ViewHelper;
[AttributeUsage(AttributeTargets.Class)]
public class ViewModelRegisterAttribute : Attribute
{
public ViewModelRegisterAttribute(Type? type = null, bool isSingleton = true)
{
Type = type;
IsSingleton = isSingleton;
}
public Type? Type { get; }
public bool IsSingleton { get; }
}