前台填写问卷时将社区修改成输入关键字进行搜索后进行选择。
幢列表修改成输入关键字进行搜索后进行选择。
This commit is contained in:
@@ -109,17 +109,18 @@ namespace Ewide.Core
|
||||
|
||||
public List<string> GetAllKeys()
|
||||
{
|
||||
const BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic;
|
||||
var entries = _memoryCache.GetType().GetField("_entries", flags).GetValue(_memoryCache);
|
||||
var cacheItems = entries.GetType().GetProperty("Keys").GetValue(entries) as ICollection<object>; //entries as IDictionary;
|
||||
var keys = new List<string>();
|
||||
if (cacheItems == null) return keys;
|
||||
return cacheItems.Select(u => u.ToString()).ToList();
|
||||
//foreach (DictionaryEntry cacheItem in cacheItems)
|
||||
//{
|
||||
// keys.Add(cacheItem.Key.ToString());
|
||||
//}
|
||||
//return keys;
|
||||
//const BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic;
|
||||
//var entries = _memoryCache.GetType().GetField("_entries", flags).GetValue(_memoryCache);
|
||||
//var cacheItems = entries.GetType().GetProperty("Keys").GetValue(entries) as ICollection<object>; //entries as IDictionary;
|
||||
//var keys = new List<string>();
|
||||
//if (cacheItems == null) return keys;
|
||||
//return cacheItems.Select(u => u.ToString()).ToList();
|
||||
////foreach (DictionaryEntry cacheItem in cacheItems)
|
||||
////{
|
||||
//// keys.Add(cacheItem.Key.ToString());
|
||||
////}
|
||||
////return keys;
|
||||
return new List<string>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user