mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
a few more useless changes
This commit is contained in:
@@ -53,9 +53,9 @@ namespace OpenSim.Framework
|
||||
|
||||
public bool TryGet<T>(out T iface)
|
||||
{
|
||||
if (m_moduleInterfaces.ContainsKey(typeof(T)))
|
||||
if (m_moduleInterfaces.TryGetValue(typeof(T), out object o))
|
||||
{
|
||||
iface = (T)m_moduleInterfaces[typeof(T)];
|
||||
iface = (T)o;
|
||||
return true;
|
||||
}
|
||||
iface = default(T);
|
||||
|
||||
Reference in New Issue
Block a user