dotnet / dotnet/vblang

Find someway to make XML literals target typed to construct arbitrary objects

Open
#110 0 comments 1 reaction 0 assignees View on GitHub
Discussion
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.