Example #1
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            ToLowerConverter toLowerConverter = ToLowerConverter._instance;

            if (toLowerConverter == null)
            {
                toLowerConverter           = new ToLowerConverter();
                ToLowerConverter._instance = toLowerConverter;
            }
            return(toLowerConverter);
        }
Example #2
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(_instance ?? (_instance = new ToLowerConverter()));
 }
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return _instance ?? (_instance = new ToLowerConverter());
 }