Files
NebulaLauncher/Nebula.Launcher/ViewHelper/ViewModelRegisterAttribute.cs

16 lines
369 B
C#
Raw Normal View History

2024-12-21 15:15:04 +03:00
using System;
namespace Nebula.Launcher.ViewHelper;
2024-12-26 18:54:37 +03:00
[AttributeUsage(AttributeTargets.Class)]
2025-01-05 17:05:23 +03:00
public class ViewModelRegisterAttribute : Attribute
2024-12-21 15:15:04 +03:00
{
2025-01-05 17:05:23 +03:00
public ViewModelRegisterAttribute(Type? type = null, bool isSingleton = true)
2024-12-21 15:15:04 +03:00
{
Type = type;
2024-12-26 18:54:37 +03:00
IsSingleton = isSingleton;
2024-12-21 15:15:04 +03:00
}
2025-01-14 22:10:16 +03:00
public Type? Type { get; }
public bool IsSingleton { get; }
2024-12-21 15:15:04 +03:00
}