Skip to content

Commit c66d222

Browse files
committed
Clarify Splat registration type documentation
Updated XML comments to specify that the ViewModel (T) is registered in the Splat service locator, instead of IViewFor<T>. This improves clarity for consumers of the attribute.
1 parent d1c6e2b commit c66d222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ReactiveUI.SourceGenerators.Roslyn/AttributeDefinitions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ internal sealed class IViewForAttribute<T> : global::System.Attribute
362362
363363
/// <summary>
364364
/// Gets the Splat registration type for Splat View Model registration.
365-
/// Registers IViewFor<T> in the Splat service locator.
365+
/// Registers the ViewModel (T) in the Splat service locator.
366366
/// </summary>
367367
public SplatRegistrationType ViewModelRegistrationType { get; init; } = SplatRegistrationType.None;
368368
}
@@ -387,7 +387,7 @@ internal sealed class IViewForAttribute(string? viewModelType) : global::System.
387387
388388
/// <summary>
389389
/// Gets the Splat registration type for Splat View Model registration.
390-
/// Registers IViewFor<T> in the Splat service locator.
390+
/// Registers the ViewModel (T) in the Splat service locator.
391391
/// </summary>
392392
public SplatRegistrationType ViewModelRegistrationType { get; init; } = SplatRegistrationType.None;
393393
}

0 commit comments

Comments
 (0)