c# - 'Catel.IoC.IServiceLocator' does not contain a definition for 'Instance' -
I am quite new to .NET development and Catel but working on a project to learn it. Currently the original developer is not present, so I will try my luck instead.
It tries a lot to undo / re-implement Catel's Memento Pattern support, but I am having trouble doing this Example of Memento service when I do this in my ViewModel: Code> var mementoService = ServiceLocator.Instance.ResolveType & lt; IMementoService & gt; (); I get: I have seen that whenever I do this in my model, I do not have this problem I find it strange that I get an example of service Not needing methods where I try to get it. I do not know what I'm doing wrong. NuGet Package Manager Console tells me that I have Cattle. Extension. Memento 3.7 installed as well as Cattle Core, Catal. MVVM and Cattle Extension. Control 3.7 I am using Visual Studio 2013 NET 4.0. There is no example property in the interface, and it is obsolete. You should use it: 1) In a steady reference: Catel.IoC.ServiceLocator.Default 2) In a non-static context (automatically takes care of the scope): var Sewa Sutra = this. GETServiceLocator (); There is no definition for 'instance' in 'Catel.IoC.IServiceLocator' and any extension method 'instant' to accept the first argument of 'Catel.IoC.IServiceLocator' type. Can not be done (are you remembering use director or an assembly reference?)
Comments
Post a Comment