Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
のサイズを知りたいMemoryCache。
MemoryCache
MemoryCache _cache = MemoryCache.Default; _cache.Add("key", "value"); FindSize(_cache);
メソッドを実装したいFindSize()。
FindSize()
実行時に.NETオブジェクトのサイズが見つからないのではないかと思います。詳細については、次の回答を参照してください。
_cache.Count()価値や何か違うものが必要ですか?
_cache.Count()