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