This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Allow rooting a generic method in RD.XML - #4775
Merged
Merged
Conversation
Adds support for following syntax: ```xml <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> <Application> <Assembly Name="repro"> <Type Name="Program"> <Method Name="SayHello"> <GenericArgument Name="System.Object, System.Private.CoreLib" /> </Method> </Type> </Assembly> </Application> </Directives> ``` Since this is temporary code, I just twisted the RD.XML syntax a bit so that we can reuse the type string parser we have for custom attribute blobs.
Member
Author
|
@sergiy-k PTAL |
sergiy-k
approved these changes
Oct 23, 2017
Contributor
|
@MichalStrehovsky, thank you! I assume that you checked that this is sufficient to allow rooting the generics method from #4444 (comment) in RD.xml instead of putting it in the code? |
Member
Author
I haven't actually tried with that, but the syntax should be along the lines of: <Type Name="SharpYaml.Serialization.Descriptors.DictionaryDescriptor">
<Method Name="GetGenericEnumerable" Dynamic="Required">
<GenericArgument Name="System.String, System.Private.CoreLib" />
<GenericArgument Name="System.Object, System.Private.CoreLib" />
</Method>
</Type>It should be possible to express anything with this syntax, unless there's multiple overloads of the method (overload handling would make this unnecessarily complicated so lets cross that bridge if we ever get there). |
A-And
pushed a commit
to A-And/corert
that referenced
this pull request
Oct 31, 2017
Adds support for following syntax: ```xml <Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata"> <Application> <Assembly Name="repro"> <Type Name="Program"> <Method Name="SayHello"> <GenericArgument Name="System.Object, System.Private.CoreLib" /> </Method> </Type> </Assembly> </Application> </Directives> ``` Since this is temporary code, I just twisted the RD.XML syntax a bit so that we can reuse the type string parser we have for custom attribute blobs.
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for following syntax:
Since this is temporary code, I just twisted the RD.XML syntax a bit so that we can reuse the type string parser we have for custom attribute blobs.