MONI.Data.WorkDayParser.replacePosIfNecessary C# (CSharp) Method

replacePosIfNecessary() private method

private replacePosIfNecessary ( string beforeDescription, string posReplacement ) : string
beforeDescription string
posReplacement string
return string
        private string replacePosIfNecessary(string beforeDescription, string posReplacement)
        {
            if (!string.IsNullOrWhiteSpace(posReplacement))
            {
                return string.Format("{0}-{1}", beforeDescription.TokenReturnInputIfFail("-", 1), posReplacement);
            }
            return beforeDescription;
        }