Describe the bug 🐞
The BindableDerivedListGenerator seems to be using the visibility of the class to generate the properties instead of making it public.
Step to reproduce
- ViewModel class:
internal partial class ViewModel : ReactiveObject
{
[BindableDerivedList]
private readonly ReadOnlyObservableCollection<string> _theList;
}
This generates:
internal partial class ViewModel
{
[global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.BindableDerivedListGenerator", "2.6.0.0")]
/// <inheritdoc cref="_theList"/>
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal global::System.Collections.ObjectModel.ReadOnlyObservableCollection<string> TheList => _theList;
}
Reproduction repository
No response
Expected behavior
Expected result:
internal partial class ViewModel
{
[global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.BindableDerivedListGenerator", "2.6.0.0")]
/// <inheritdoc cref="_theList"/>
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
public global::System.Collections.ObjectModel.ReadOnlyObservableCollection<string> TheList => _theList;
}
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
Windows 11
Version
No response
Device
PC
ReactiveUI Version
2.6.1
Additional information ℹ️
No response
Describe the bug 🐞
The
BindableDerivedListGeneratorseems to be using the visibility of the class to generate the properties instead of making it public.Step to reproduce
This generates:
Reproduction repository
No response
Expected behavior
Expected result:
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
Windows 11
Version
No response
Device
PC
ReactiveUI Version
2.6.1
Additional information ℹ️
No response