[stringtemplate-interest] ST# - question regardingspecialcasingof
IList
Jeremy Gray
jgray at siberra.com
Thu May 25 17:43:51 PDT 2006
The short answer is yes. ST# could treat as multi-valued anything that
implements IEnumerable.
With that in mind, for those objects that support more than IEnumerable
there is also nothing to stop ST# from allowing both of the following,
the first of which I understand from a recent mailing list post is
currently not possible:
$list.Count$
$list:template()$
Jeremy
-----Original Message-----
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Kunle
Odutola
Sent: Thursday, May 25, 2006 5:48 PM
To: stringtemplate-interest at antlr.org
Subject: Re: [stringtemplate-interest] ST# - question
regardingspecialcasingof IList
Jeremy,
> Re: IEnumerable - correct, virtually all .net collections are
> IEnumerable. My point was that there are classes out there
> that are IEnumerable but not ICollection or IList, and since
> it would seem that ST# doesn't need ICollection or IList, why
> restrict it so that it cannot enumerate those objects that
> only implement IEnumerable.
Are you asking why ST# doesn't treat all attributes whose value is of a
type
that implement IEnumerable as multi-valued?
Kunle
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest at antlr.org
http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
More information about the stringtemplate-interest
mailing list