Skip to content

Commit 739de43

Browse files
winui
1 parent 74db58a commit 739de43

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

DevExpress.Mvvm.CodeGenerators.Tests/UnitTests.WinUI/Tests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ partial class Example : INotifyPropertyChanged, ISupportUIServices {
228228
IUIServiceContainer ServiceContainer => serviceContainer ??= new UIServiceContainer();
229229
IUIServiceContainer ISupportUIServices.ServiceContainer => ServiceContainer;
230230
231-
protected object? GetUIService(Type type, string key = null) => ServiceContainer.GetService(type, key);
232-
protected T? GetUIService<T>(string key = null) where T : class => ServiceContainer.GetService<T>(key);
231+
protected object? GetUIService(Type type, string? key = null) => ServiceContainer.GetService(type, key);
232+
protected T? GetUIService<T>(string? key = null) where T : class => ServiceContainer.GetService<T>(key);
233233
234234
protected void RaisePropertyChanged(PropertyChangedEventArgs e) => PropertyChanged?.Invoke(this, e);
235235

DevExpress.Mvvm.CodeGenerators/DevExpress.Mvvm.CodeGenerators.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<PropertyGroup>
7171
<Title>DevExpress.Mvvm.CodeGenerators</Title>
7272
<Product>DevExpress.Mvvm.CodeGenerators</Product>
73-
<Version>21.2.2</Version>
73+
<Version>21.2.4</Version>
7474
<NeutralLanguage>en-US</NeutralLanguage>
7575
<Company>Developer Express Inc.</Company>
7676
</PropertyGroup>

DevExpress.Mvvm.CodeGenerators/Generators/InterfaceGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public void AppendImplementation(SourceBuilder source) {
6060
.AppendLine(@"IUIServiceContainer ISupportUIServices.ServiceContainer => ServiceContainer;");
6161
source.AppendLine();
6262
source.AppendIf(!isSealed, protectedModifier)
63-
.AppendLine("object? GetUIService(Type type, string key = null) => ServiceContainer.GetService(type, key);");
63+
.AppendLine("object? GetUIService(Type type, string? key = null) => ServiceContainer.GetService(type, key);");
6464
source.AppendIf(!isSealed, protectedModifier)
65-
.AppendLine("T? GetUIService<T>(string key = null) where T : class => ServiceContainer.GetService<T>(key);");
65+
.AppendLine("T? GetUIService<T>(string? key = null) where T : class => ServiceContainer.GetService<T>(key);");
6666
return;
6767
}
6868
source.AppendLine("IServiceContainer? serviceContainer;")

0 commit comments

Comments
 (0)