Improve type caching by MrJul · Pull Request #142 · kekekeks/XamlX (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

maxkatz6

merged 3 commits into

May 20, 2026

Conversation

@MrJul

This PR improves the caching of IXamlType instances in several ways:

@MrJul

(cherry picked from commit 61304a6)

@MrJul

(cherry picked from commit ec7b5f3)

@MrJul

(cherry picked from commit 5645d94)

@MrJul MrJul mentioned this pull request

May 20, 2026

maxkatz6

kekekeks

[UnconditionalSuppressMessage("Trimming", "IL2062", Justification = TrimmingMessages.TypeInCoreAssembly)]
[UnconditionalSuppressMessage("Trimming", "IL2122", Justification = TrimmingMessages.TypeInCoreAssembly)]
public XamlTypeWellKnownTypes(IXamlTypeSystem typeSystem)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: use primary ctor and make property init inline

@MrJul MrJul mentioned this pull request

May 21, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})