int GetDisposePriority(ReferenceHolder<RefCounted> refHolder) { const int defaulPriority = 1000; var obj = refHolder?.Reference; if (obj == null) return defaulPriority; if (obj is Scene) return 1; //TODO: return defaulPriority; }
int GetDisposePriority(ReferenceHolder <RefCounted> refHolder) { const int defaulPriority = 1000; var obj = refHolder?.Reference; if (obj == null) { return(defaulPriority); } if (obj is Scene) { return(1); } if (obj is Context) { return(int.MaxValue); } //TODO: return(defaulPriority); }