using System; namespace Model { public class GwStrategy { private int _strategyId; private string _strategyName; private string _wordList; private string _PatternList; public int StrategyId { get { return this._strategyId; } set { this._strategyId = value; } } public string StrategyName { get { return this._strategyName; } set { this._strategyName = value; } } public string WordList { get { return this._wordList; } set { if (value == null) value = string.Empty; this._wordList = string.Join("\n", value.Split(",;;\r\n\t".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)); } } public string PatternList { get { return this._PatternList; } set { if (value == null) value = string.Empty; this._PatternList = string.Join("\n", value.Split(",;;\r\n\t".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)); } } } }