public ParserLine CreateClone(string aKey) { ParserLine ret = null; // lock ( iEntries ) { if (Exists(aKey)) { RegExTranslatorCacheEntry entry = iEntries[aKey]; ret = entry.Clone(); } } // return(ret); }
public void Add(string aKey, ParserLine aLine) { System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(aKey)); System.Diagnostics.Debug.Assert(aLine != null); System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(aLine.OriginalValue)); System.Diagnostics.Debug.Assert(!string.IsNullOrEmpty(aLine.FinalValue)); System.Diagnostics.Debug.Assert(iEntries != null); try { lock ( iEntries ) { if (Exists(aKey) == false) { RegExTranslatorCacheEntry entry = new RegExTranslatorCacheEntry(aLine); iEntries.Add(aKey, entry); } } } catch (Exception) { SymbianUtils.SymDebug.SymDebugger.Break(); } }