File tree Expand file tree Collapse file tree
src/ThunderDesign.Net-PCL.SourceGenerators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,9 +217,10 @@ static string ToPropertyAccessibilityString(string access)
217217 }
218218
219219 // Helper to get the accessor modifier (empty if matches property)
220- static string ToAccessorModifier ( string accessor , string property )
220+ static string ToAccessorModifier ( string accessor , string propertyAccess )
221221 {
222- if ( string . Equals ( accessor , property , System . StringComparison . OrdinalIgnoreCase ) || accessor == null )
222+ // Compare raw values, not formatted strings
223+ if ( string . Equals ( accessor , propertyAccess , System . StringComparison . OrdinalIgnoreCase ) || accessor == null )
223224 return "" ;
224225 return ToPropertyAccessibilityString ( accessor ) ;
225226 }
@@ -240,11 +241,9 @@ static int GetAccessibilityRank(string access)
240241 }
241242
242243 // Helper to get the widest (most accessible) accessibility
243- static string GetWidestAccessibility ( object getter , object setter )
244+ static string GetWidestAccessibility ( string getter , string setter )
244245 {
245- string getterStr = getter ? . ToString ( ) ?? "Public" ;
246- string setterStr = setter ? . ToString ( ) ?? "Public" ;
247- return GetAccessibilityRank ( getterStr ) >= GetAccessibilityRank ( setterStr ) ? getterStr : setterStr ;
246+ return GetAccessibilityRank ( getter ) >= GetAccessibilityRank ( setter ) ? getter : setter ;
248247 }
249248
250249 // Generate all bindable properties
You can’t perform that action at this time.
0 commit comments