mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
调整Covert重命名为Convert
This commit is contained in:
@@ -179,23 +179,23 @@ namespace XCharts.Runtime
|
||||
RefreshChart();
|
||||
}
|
||||
|
||||
public bool CovertSerie<T>(Serie serie) where T : Serie
|
||||
public bool ConvertSerie<T>(Serie serie) where T : Serie
|
||||
{
|
||||
return CovertSerie(serie, typeof(T));
|
||||
return ConvertSerie(serie, typeof(T));
|
||||
}
|
||||
|
||||
public bool CovertSerie(Serie serie, Type type)
|
||||
public bool ConvertSerie(Serie serie, Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
var newSerie = type.InvokeMember("CovertSerie",
|
||||
var newSerie = type.InvokeMember("ConvertSerie",
|
||||
BindingFlags.InvokeMethod | BindingFlags.Static | BindingFlags.Public, null, null,
|
||||
new object[] { serie }) as Serie;
|
||||
return ReplaceSerie(serie, newSerie);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Debug.LogError(string.Format("CovertSerie Failed: can't found {0}.CovertSerie(Serie serie)", type.Name));
|
||||
Debug.LogError(string.Format("ConvertSerie Failed: can't found {0}.ConvertSerie(Serie serie)", type.Name));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user