functionDicToLuaTable(Dic)--将C#的Dic转成Lua的Table
local dic ={}if Dic then
local iter = Dic:GetEnumerator()while iter:MoveNext()dolocal k = iter.Current.Key
local v = iter.Current.Value
dic[k]= v
end
end
return dic
end
将C#List转成luaTable
functionListToTable(List)--将C#的List转成Lua的Table
local list ={}if List then
local index =1local iter = List:GetEnumerator()while iter:MoveNext()dolocal v = iter.Current
list[index]=v
index = index +1
end
elselogError("Error,CSharpList is null")
end
return list
end