using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using Signum.Utilities; using Signum.Entities; namespace Signum.Engine.Maps { public class NameSequence { private NameSequence() { } public static readonly NameSequence Void = new VoidNameSequence(); class VoidNameSequence : NameSequence { public override string ToString() { return "Value"; } } readonly string Value; readonly NameSequence PreSequence; private NameSequence(string value, NameSequence preSequence) { this.Value = value; this.PreSequence = preSequence; } public NameSequence Add(string name) { return new NameSequence(name, this); } public override string ToString() { return this.FollowC(a => a.PreSequence).Reverse().Skip(1).ToString(a => a.Value, "_"); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)