Esperida
Esperida
Explore posts from servers
CC#
Created by Esperida on 7/23/2024 in #help
Who to force a type
Hello, In a C# class i have this property public Type? Value1; And on the same class have this methode
public void test()
{
if (Value1 != null)
{
Type Value2 = Value1;
}
}
public void test()
{
if (Value1 != null)
{
Type Value2 = Value1;
}
}
C# would not compile because Type1 could be null and not Value2 How to edit test for granted Value1 is of type Type1 ? I have try Value1.HasValue in the if but that do the same Thanks at advence
6 replies
SSolidJS
Created by Esperida on 5/14/2024 in #support
Save global var in SolidJS
Hi everyone, I m new with SolidJS and I'm trying to make an event handler but I have some difficulty. Is it possible to define a global variable in the client to save a User connection token and reuse it on every component as i want. For now i only know do it by pass it on params of all my components one by one. Does it existe a best way to do that Thanks in advance
3 replies