Here are the examples of the csharp api System.Collections.Generic.Dictionary.Remove(TypeNamePair) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : DataTableManager.cs
with MIT License
from EllanJiang
with MIT License
from EllanJiang
private bool InternalDestroyDataTable(TypeNamePair typeNamePair)
{
DataTableBase dataTable = null;
if (m_DataTables.TryGetValue(typeNamePair, out dataTable))
{
dataTable.Shutdown();
return m_DataTables.Remove(typeNamePair);
}
return false;
}
19
Source : FsmManager.cs
with MIT License
from EllanJiang
with MIT License
from EllanJiang
private bool InternalDestroyFsm(TypeNamePair typeNamePair)
{
FsmBase fsm = null;
if (m_Fsms.TryGetValue(typeNamePair, out fsm))
{
fsm.Shutdown();
return m_Fsms.Remove(typeNamePair);
}
return false;
}
19
Source : DataTableExtensionComponent.cs
with MIT License
from FingerCaster
with MIT License
from FingerCaster
private bool InternalDestroyDataTable<T>(TypeNamePair typeNamePair) where T : IDataRow
{
IDataTable<T> dataTable = GameEntry.DataTable.GetDataTable<T>();
if (dataTable == null)
{
return true;
}
var result = GameEntry.DataTable.DestroyDataTable(dataTable);
if (result)
{
if (m_DataTableRowConfigs.TryGetValue(typeNamePair, out var config))
{
config.FileStream.Dispose();
config.FileStream = null;
m_DataTableRowConfigs.Remove(typeNamePair);
}
}
return result;
}