LastChildSelector.cs 549 Bytes
Newer Older
Eric Domke's avatar
Eric Domke committed
1
// ReSharper disable once CheckNamespace
Matt Schneeberger's avatar
Matt Schneeberger committed
2
namespace Svg.ExCSS
Eric Domke's avatar
Eric Domke committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
    internal sealed class LastChildSelector : BaseSelector, IToString
    {
        LastChildSelector()
        { }

        static LastChildSelector _instance;

        public static LastChildSelector Instance
        {
            get { return _instance ?? (_instance = new LastChildSelector()); }
        }

        public override string ToString(bool friendlyFormat, int indentation = 0)
        {
            return ":" + PseudoSelectorPrefix.PseudoLastchild;
        }
    }
}