File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed
src/FmgLib.MauiMarkup.Generator/Extensions Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ void GenerateClassExtensionBody()
111111 _ . Type . AllInterfaces . Any ( e => e . Name . Contains ( nameof ( IEnumerable ) ) ) &&
112112 ! _ . Type . Name . Equals ( nameof ( String ) , StringComparison . InvariantCultureIgnoreCase ) )
113113 . Where ( _ => _ . Type . Name . Contains ( nameof ( ICollection ) ) || _ . Type . AllInterfaces . Any ( e => e . Name . Contains ( nameof ( ICollection ) ) ) || ! ( _ . Type . Name . Contains ( "IReadOnlyList" ) || _ . Type . AllInterfaces . Any ( e => e . Name . Contains ( "IReadOnlyList" ) ) ) )
114+ . Where ( _ => ! ( _ . Type . Name . StartsWith ( "ReadOnlyObservableCollection" ) || _ . Type . Name . StartsWith ( "ReadOnlyCollection" ) || _ . Type . Name . StartsWith ( "ReadOnlyDictionary" ) || ( _ . Type . BaseType != null && ( _ . Type . BaseType . Name . StartsWith ( "ReadOnlyObservableCollection" ) || _ . Type . BaseType . Name . StartsWith ( "ReadOnlyCollection" ) || _ . Type . BaseType . Name . StartsWith ( "ReadOnlyDictionary" ) ) ) ) )
114115 . ToList ( ) ;
115116
116117
You can’t perform that action at this time.
0 commit comments