Files
NebulaLauncher/Nebula.Launcher/ViewHelper/ViewRegisterAttribute.cs
2024-12-26 18:54:37 +03:00

16 lines
350 B
C#

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