AvaloniaVS icon indicating copy to clipboard operation
AvaloniaVS copied to clipboard

Autocomplete shouldn't list internal properties

Open FoggyFinder opened this issue 6 years ago • 4 comments

For example. RowDefinitionsDirty:

sample

If one have set the property then runtime exception will be thrown:

Unhandled exception. System.MethodAccessException: Attempt by method 'Views.MainWindow.!XamlIlPopulate(System.IServiceProvider, Views.MainWindow)' to access method 'Avalonia.Controls.Grid.set_RowDefinitionsDirty(Boolean)' failed.

FoggyFinder avatar Dec 23 '19 08:12 FoggyFinder

What about this in nightly builds? AvaloniaUI/Avalonia#4985

rstm-sf avatar Nov 12 '20 18:11 rstm-sf

dunno, I don't have time to check it now

FoggyFinder avatar Nov 12 '20 18:11 FoggyFinder

Checked - the same

FoggyFinder avatar Nov 22 '20 17:11 FoggyFinder

It seems that additional checks on family ​​need to be made https://github.com/0xd4d/dnlib/blob/4e0837cb0f4319ffbcdd1642d1973fce203b2177/src/DotNet/MethodAttributes.cs#L20-L26

rstm-sf avatar Feb 10 '21 21:02 rstm-sf