this is using Blazor c#/html.
im taking a helper class:
public class HelperClass { public bool HelperClassBoolF { get; set; } public bool HelperClassBoolT { get; set; } public HelperClass() { HelperClassBoolF = false; HelperClassBoolT = true; } }and wanting to set the variable in PrintShopAttachment.cs, then have it use it in Attachment.cs
in startup.cs i am using
services.AddSingleton<HelperClass>();classes do not allow injection, the @sign doesn't allow any sort of auto fill. how can classes share a global variables. i was wanting the helper class usable in both PrintShopAttachment.cs and Attachment.cs.