MCPcopy Create free account
hub / github.com/Tencent/xLua / GetMethodWrapInCache

Method GetMethodWrapInCache

Assets/XLua/Src/MethodWarpsCache.cs:428–438  ·  view source on GitHub ↗
(Type type, string methodName)

Source from the content-addressed store, hash-verified

426 }
427
428 public LuaCSFunction GetMethodWrapInCache(Type type, string methodName)
429 {
430 //string retriKey = type.ToString() + "." + methodName;
431 //return methodsCache.ContainsKey(retriKey) ? methodsCache[retriKey] : null;
432 if (!methodsCache.ContainsKey(type))
433 {
434 methodsCache[type] = new Dictionary<string, LuaCSFunction>();
435 }
436 var methodsOfType = methodsCache[type];
437 return methodsOfType.ContainsKey(methodName) ? methodsOfType[methodName] : null;
438 }
439
440 public LuaCSFunction GetDelegateWrap(Type type)
441 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected