prevent initialization if not used
This commit is contained in:
@@ -6,6 +6,9 @@ namespace Pilz.UI.Telerik.Symbols;
|
||||
|
||||
public static class RadSymbols
|
||||
{
|
||||
public static IRadSymbolFactory<SymbolsColor> Color { get; } = new ColorFactory();
|
||||
public static IRadSymbolFactory<SymbolsFluent> Fluent { get; } = new FluentFactory();
|
||||
private static IRadSymbolFactory<SymbolsColor>? color;
|
||||
private static IRadSymbolFactory<SymbolsFluent>? fluent;
|
||||
|
||||
public static IRadSymbolFactory<SymbolsColor> Color => color ??= new ColorFactory();
|
||||
public static IRadSymbolFactory<SymbolsFluent> Fluent => fluent ??= new FluentFactory();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user