using System.Collections.Generic; namespace UniVRM10 { public static class DictionaryExtensions { public static U GetOrDefault(this Dictionary d, T key) { if(key == null) { return default; } if(d.TryGetValue(key, out U value)) { return value;; } else{ return default; } } } }