﻿using System.Runtime.Serialization;

namespace ReNaming.Models.RenamePattern
{
    [DataContract]
    public class RemoveFromHeadRenamePattern : RemoveRenamePatternBase
    {
        [IgnoreDataMember]
        public int Count
        {
            get { return RemoveFromHeadBehavior.Count; }
            set { RemoveFromHeadBehavior.Count = value; }
        }


        [IgnoreDataMember]
        private RemoveFromHeadBehavior _RemoveFromHeadBehavior;
        public RemoveFromHeadBehavior RemoveFromHeadBehavior
        {
            get
            {
                return _RemoveFromHeadBehavior
                    ?? (_RemoveFromHeadBehavior = PreRemoveBehavior as RemoveFromHeadBehavior);
            }
        }


        public RemoveFromHeadRenamePattern()
            : base(new RemoveFromHeadBehavior())
        {
        }
    }
}
