-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IXamlType.FullName Inconsistency #119
Comments
Likely, Cecil one is expected. Sre is a mix of Type.AssemblyQualifiedName (for generics) and FullName for the main type name itself. Also, anything that compatible with .NET TypeNameParser is a bonus: |
Looks like it's an expected behavior for Type.FullName to return assembly qualified names for generics. For some reason. |
For your tests, you might want to use these extensions probably: XamlX/src/XamlX/TypeSystem/TypeSystem.cs Lines 341 to 351 in 941dafc
Unless our GetFullName extension is missing generics (which it might do). |
What do you think if I normalized the Sre FullName like in Cecil instead of using an extension method? |
I don't know if it will break anything. It would require double checking any FullName usage. |
there is no spec: dotnet/runtime#97566 (comment) in the future, more systems are likely to depend on TypeNameParser's behavior. @adamsitnik may able to clarify some confusion. cecil should probably switch to TNP for net9-and-above |
The new
Yes, but only for the generic arguments. > typeof(List<int>).FullName
"System.Collections.Generic.List`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]"
> typeof(List<int>).AssemblyQualifiedName
"System.Collections.Generic.List`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" |
While devlop test for #112, i found inconsistency when i get FullName of GenericType.
Sre
Cecil
Which of both is the expected behavior?
The text was updated successfully, but these errors were encountered: