protected override IMSBuildGlob CreateMsBuildGlob() { if (ReferencedItems.Count == 1) { // Optimize the common case, avoiding allocation of enumerable/enumerator. return(ReferencedItems[0].ItemAsValueFragment.ToMSBuildGlob()); } return(CompositeGlob.Create(ReferencedItems.Select(i => i.ItemAsValueFragment.ToMSBuildGlob()))); }
protected override IMSBuildGlob CreateMsBuildGlob() { return(new CompositeGlob(ReferencedItems.Select(i => i.ItemAsValueFragment.ToMSBuildGlob()))); }
public override IEnumerable <string> GetReferencedItems() { return(ReferencedItems.Select(v => EscapingUtilities.UnescapeAll(v.ItemAsValueFragment.TextFragment))); }