public void CacheHashValues() { if (HashCache == null) { HashCache = new System.Runtime.CompilerServices.ConditionalWeakTable <Expression, Tuple <int> >(); } }
static void checkCacheValidity() { if (PluginManager.ChangeID != ChangeID) { searchers.Clear(); MemberData.InvalidateCache(); dict = new System.Runtime.CompilerServices.ConditionalWeakTable <Type, TypeData>(); ChangeID = PluginManager.ChangeID; } }
public object WatchForChangesOnLayout(VisualElement visualElement, Action action) { if (action == null) { return(null); } var view = Platform.Android.Platform.GetRenderer(visualElement); var androidView = view?.View; if (androidView == null || !androidView.IsAlive()) { return(null); } var listener = new DualScreenGlobalLayoutListener(action, androidView); var table = new System.Runtime.CompilerServices.ConditionalWeakTable <AView, DualScreenGlobalLayoutListener>(); androidView.ViewTreeObserver.AddOnGlobalLayoutListener(listener); table.Add(androidView, listener); return(table); }
public TValue GetValue(TKey key, System.Runtime.CompilerServices.ConditionalWeakTable <TKey, TValue> .CreateValueCallback createValueCallback) { throw null; }
static WorkflowAction() { statePathsByCodeNameTable = new System.Runtime.CompilerServices.ConditionalWeakTable <D, IDictionary <string, StatePath> >(); }
public TValue GetValue(TKey key, System.Runtime.CompilerServices.ConditionalWeakTable <TKey, TValue> .CreateValueCallback createValueCallback) { return(default(TValue)); }