When overridden in a derived class, searches for the property 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
(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
| 1375 | /// <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> |
| 1376 | /// <returns>The member object representing the property defined for the current type that matches the specified name. Returns <see cref="ScriptMemberInfo.Null"/> if failed.</returns> |
| 1377 | public ScriptMemberInfo GetProperty(string name, BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public) |
| 1378 | { |
| 1379 | if (_managed != null) |
| 1380 | { |
| 1381 | var managedMember = _managed.GetProperty(name, bindingAttr); |
| 1382 | return new ScriptMemberInfo(managedMember); |
| 1383 | } |
| 1384 | if (_custom != null) |
| 1385 | return _custom.GetMembers(name, MemberTypes.Property, bindingAttr).FirstOrDefault(); |
| 1386 | return ScriptMemberInfo.Null; |
| 1387 | } |
| 1388 | |
| 1389 | /// <summary> |
| 1390 | /// When overridden in a derived class, searches for the method defined for the current type using the specified binding constraints. |
no test coverage detected