File tree Expand file tree Collapse file tree
DevExpress.Mvvm.CodeGenerators.Tests/UnitTests/GenearationTests
DevExpress.Mvvm.CodeGenerators/Generators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ public object? ParentViewModel {
316316 protected IServiceContainer ServiceContainer { get => serviceContainer ??= new ServiceContainer(this); }
317317 IServiceContainer ISupportServices.ServiceContainer { get => ServiceContainer; }
318318 protected T? GetService<T>() where T : class => ServiceContainer.GetService<T>();
319- protected T? GetRequiredService<T>() where T : class => ServiceContainer.GetRequiredService<T>();
319+ protected T GetRequiredService<T>() where T : class => ServiceContainer.GetRequiredService<T>();
320320
321321 protected void RaisePropertyChanged(PropertyChangedEventArgs e) => PropertyChanged?.Invoke(this, e);
322322 protected void RaisePropertyChanging(PropertyChangingEventArgs e) => PropertyChanging?.Invoke(this, e);
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public void AppendImplementation(SourceBuilder source) {
7272 source . AppendIf ( ! isSealed , protectedModifier )
7373 . AppendLine ( "T? GetService<T>() where T : class => ServiceContainer.GetService<T>();" )
7474 . AppendIf ( ! isSealed , protectedModifier )
75- . AppendLine ( "T? GetRequiredService<T>() where T : class => ServiceContainer.GetRequiredService<T>();" ) ;
75+ . AppendLine ( "T GetRequiredService<T>() where T : class => ServiceContainer.GetRequiredService<T>();" ) ;
7676 }
7777 }
7878 class IActiveAwareGenerator : IInterfaceGenerator {
You can’t perform that action at this time.
0 commit comments