Пример #1
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 => _instance ?? (_instance = new RatioConverter());
Пример #2
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return _instance ?? (_instance = new RatioConverter());
 }
Пример #3
0
 public void InitializeConverter()
 {
     _converter = new RatioConverter();
 }