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

Method TryGetDelegate

Assets/XLua/Src/DelegateBridge.cs:40–53  ·  view source on GitHub ↗
(Type key, out Delegate value)

Source from the content-addressed store, hash-verified

38 }
39
40 public bool TryGetDelegate(Type key, out Delegate value)
41 {
42 if(key == firstKey)
43 {
44 value = firstValue;
45 return true;
46 }
47 if (bindTo != null)
48 {
49 return bindTo.TryGetValue(key, out value);
50 }
51 value = null;
52 return false;
53 }
54
55 public void AddDelegate(Type key, Delegate value)
56 {

Callers 1

CreateDelegateBridgeMethod · 0.80

Calls 1

TryGetValueMethod · 0.80

Tested by

no test coverage detected