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

Method IsStaticPInvokeCSFunction

Assets/XLua/Src/Utils.cs:1509–1516  ·  view source on GitHub ↗
(LuaCSFunction csFunction)

Source from the content-addressed store, hash-verified

1507 }
1508
1509 public static bool IsStaticPInvokeCSFunction(LuaCSFunction csFunction)
1510 {
1511#if UNITY_WSA && !UNITY_EDITOR
1512 return csFunction.GetMethodInfo().IsStatic && csFunction.GetMethodInfo().GetCustomAttribute<MonoPInvokeCallbackAttribute>() != null;
1513#else
1514 return csFunction.Method.IsStatic && Attribute.IsDefined(csFunction.Method, typeof(MonoPInvokeCallbackAttribute));
1515#endif
1516 }
1517
1518 public static bool IsPublic(Type type)
1519 {

Callers 2

PushMethod · 0.80
AddBuildinFunction · 0.80

Calls 1

IsDefinedMethod · 0.80

Tested by

no test coverage detected