Find someway to make XML literals target typed to construct arbitrary objects
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
There are two uses I have in mind.
The first is decoupling XML literals from XLinq. So, for example, allowing XML literals to construct WinRT Windows.Data.Xml objects.
The second is basically XAML literals. We use XML literals all throughout the Roslyn test base to describe all kinds of testing scenarios but it's all parsed and created at runtime. What if we could use target typing to actually have that expression create an object graph. Lucian had been thinking about way of doing this involving methods declaring that they `Handles` a particular element or attribute appearing in source. Could be worthwhile.
Powerful, but maybe too much complexity? We need a more thought out design.
Could also cheat and do this with #107 I suppose.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.