- tweak: refactor funny
This commit is contained in:
16
Nebula.Launcher/ViewHelper/ViewModelRegisterAttribute.cs
Normal file
16
Nebula.Launcher/ViewHelper/ViewModelRegisterAttribute.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Nebula.Launcher.ViewHelper;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class ViewModelRegisterAttribute : Attribute
|
||||
{
|
||||
public Type? Type { get; }
|
||||
public bool IsSingleton { get; }
|
||||
|
||||
public ViewModelRegisterAttribute(Type? type = null, bool isSingleton = true)
|
||||
{
|
||||
Type = type;
|
||||
IsSingleton = isSingleton;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user