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

Class CompareByArgRet

Assets/XLua/Src/ObjectTranslator.cs:264–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263#if (UNITY_EDITOR || XLUA_GENERAL) && !NET_STANDARD_2_0
264 class CompareByArgRet : IEqualityComparer<MethodInfo>
265 {
266 public bool Equals(MethodInfo x, MethodInfo y)
267 {
268 return Utils.IsParamsMatch(x, y);
269 }
270 public int GetHashCode(MethodInfo method)
271 {
272 int hc = 0;
273 hc += method.ReturnType.GetHashCode();
274 foreach (var pi in method.GetParameters())
275 {
276 hc += pi.ParameterType.GetHashCode();
277 }
278 return hc;
279 }
280 }
281#endif
282
283 void initCSharpCallLua()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected