When overridden in a derived class, searches for the method defined for the current type using the specified binding constraints. The string containing the name of the members to get. A bitmask comprised of one or more that specify how the search is conducted.-or- Zero (<see cr
(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
| 1413 | /// <param name="bindingAttr">A bitmask comprised of one or more <see cref="T:System.Reflection.BindingFlags" /> that specify how the search is conducted.-or- Zero (<see cref="F:System.Reflection.BindingFlags.Default" />), to return an empty item.</param> |
| 1414 | /// <returns>The member object representing the method defined for the current type that matches the specified name. Returns <see cref="ScriptMemberInfo.Null"/> if failed.</returns> |
| 1415 | public ScriptMemberInfo GetMethod(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public) |
| 1416 | { |
| 1417 | if (_managed != null) |
| 1418 | { |
| 1419 | var managedMember = _managed.GetMethod(name, bindingAttr); |
| 1420 | return new ScriptMemberInfo(managedMember); |
| 1421 | } |
| 1422 | if (_custom != null) |
| 1423 | return _custom.GetMembers(name, MemberTypes.Method, bindingAttr).FirstOrDefault(); |
| 1424 | return ScriptMemberInfo.Null; |
| 1425 | } |
| 1426 | |
| 1427 | /// <summary> |
| 1428 | /// Registers delegate to be invoked upon script type disposal (except hot-reload in Editor via <see cref="ScriptsBuilder.ScriptsReload"/>). For example, can happen when user deleted Visual Script asset. |
no test coverage detected