This project is read-only.
1
Vote

IDE: method generation wrong signature

description

The other thing what overloads confuse is method generation. Consider the FrameworkPropertyMetadata constructor.

new FrameworkPropertyMetadata(OnChanged); does not offer to generate method with Roslyn at all
new FrameworkPropertyMetadata(OnChanged, OnCoerce) does not offer to generate OnChanged
new FrameworkPropertyMetadata(0, OnChanged); does generate wrong method signature (using the CoerceValueCallback)
new FrameworkPropertyMetadata(0, OnChanged, OnCoerce); generates both methods with CoerceValueCallback signature.

even when using the FrameworkMetadataOptions which clearly defines the particular overload, the OnChanged is generated with wrong signature

comments