Пример #1
0
        public ParagraphState Get(Paragraph paragraph)
        {
            ParagraphState output = null;

            _cache.TryGetValue(paragraph.GetHashCode(), out output);
            return(output);
        }
Пример #2
0
 public void Add(Paragraph p, ParagraphState state)
 {
     _cache.Add(p.GetHashCode(), state);
 }
Пример #3
0
 public ParagraphData(Config nconf, ParagraphState state)
 {
     this.nconf = nconf;
     this.state = state;
 }