Close

Profile: well

Avatar

User posts

I have only changed variables, becouse in nopCommerce are used variables _something for services

OK i write:

private readonly ShippingSettings shippingSettings;

        public ShippingSettings _shippingSettings
        {
            get
            {
                if (shippingSettings == null)
                {
                    return EngineContext.Current.Resolve<ShippingSettings>();
                }

                return shippingSettings;
            }
        }

And VS tell me: Field 'Nop.Web.Controllers.CatalogController.shippingSettings' is never assigned to, and will always have its default value nul

But

private IMyService _myService;

is always null or not?