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