Skip to content

Commit

Permalink
ReadOnlyObservableCollection, ReadOnlyCollection and ReadOnlyDictiona…
Browse files Browse the repository at this point in the history
…ry type ignored.

#155

Related Work Items: #15, #155
  • Loading branch information
gonultasmf committed Nov 25, 2024
1 parent 633e59b commit 19cf5e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void GenerateClassExtensionBody()
_.Type.AllInterfaces.Any(e => e.Name.Contains(nameof(IEnumerable))) &&
!_.Type.Name.Equals(nameof(String), StringComparison.InvariantCultureIgnoreCase))
.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"))))
.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")))))
.ToList();


Expand Down

0 comments on commit 19cf5e4

Please sign in to comment.