Untitled
Anonymous
Plain Text
08/08/2024 8:26 PM
307 B
26
Indexable
Never
public static class ServiceLocator<T> where T : class
{
private static T _value;
public static T Get()
{
return _value;
}
public static T Set(T value)
{
_value = value;
return _value;
}
}Editor is loading...
Leave a Comment