| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected