mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-03 00:10:17 -05:00
remove not used
This commit is contained in:
parent
948b3d9278
commit
438ccc62db
|
|
@ -1,23 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace UniVRM10
|
||||
{
|
||||
public static class DictionaryExtensions
|
||||
{
|
||||
public static U GetOrDefault<T, U>(this Dictionary<T, U> d, T key)
|
||||
{
|
||||
if(key == null)
|
||||
{
|
||||
return default;
|
||||
}
|
||||
|
||||
if(d.TryGetValue(key, out U value))
|
||||
{
|
||||
return value;;
|
||||
}
|
||||
else{
|
||||
return default;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user