Skip to content
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

Modify expected names for Dictionary<,> .Keys and .Values properties to match .NET names #16

Closed
wants to merge 1 commit into from

Conversation

st4l
Copy link

@st4l st4l commented May 29, 2013

See: #15

@ghost ghost assigned sharwell May 30, 2013
@sharwell
Copy link
Member

Unfortunately this change would be a substantial breaking change, so we won't be able to include it in the runtime. In addition to requiring changes to templates, it would prevent users from using a single set of templates with both the Java and C# versions of StringTemplate (a feature that the C# port of ANTLR 3 heavily relies on).

You can use this model adapter in your own code by the following:

templateGroup.RegisterModelAdaptor(typeof(IDictionary), new MyMapModelAdaptor());

@sharwell sharwell closed this May 30, 2013
@st4l
Copy link
Author

st4l commented Jun 5, 2013

Roger that, makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants