Example #1
0
 public void CacheHashValues()
 {
     if (HashCache == null)
     {
         HashCache = new System.Runtime.CompilerServices.ConditionalWeakTable <Expression, Tuple <int> >();
     }
 }
Example #2
0
 static void checkCacheValidity()
 {
     if (PluginManager.ChangeID != ChangeID)
     {
         searchers.Clear();
         MemberData.InvalidateCache();
         dict     = new System.Runtime.CompilerServices.ConditionalWeakTable <Type, TypeData>();
         ChangeID = PluginManager.ChangeID;
     }
 }
Example #3
0
            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);
            }
Example #4
0
 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> >();
 }
Example #6
0
 public TValue GetValue(TKey key, System.Runtime.CompilerServices.ConditionalWeakTable <TKey, TValue> .CreateValueCallback createValueCallback)
 {
     return(default(TValue));
 }