Searches for the specified member of the specified member type, using the specified binding constraints. The string containing the name of the member to get. The value to search for. A bitmask comprised of one or more that specify how the search is co
(string name, MemberTypes type, BindingFlags bindingAttr)
| 1229 | /// <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, to return an empty item.</param> |
| 1230 | /// <returns>The member objects representing the public member with the specified name, if found; otherwise, an empty array.</returns> |
| 1231 | public ScriptMemberInfo GetMember(string name, MemberTypes type, BindingFlags bindingAttr) |
| 1232 | { |
| 1233 | ScriptMemberInfo result; |
| 1234 | if ((type & MemberTypes.Field) == MemberTypes.Field) |
| 1235 | { |
| 1236 | result = GetField(name, bindingAttr); |
| 1237 | if (result) |
| 1238 | return result; |
| 1239 | } |
| 1240 | if ((type & MemberTypes.Property) == MemberTypes.Property) |
| 1241 | { |
| 1242 | result = GetProperty(name, bindingAttr); |
| 1243 | if (result) |
| 1244 | return result; |
| 1245 | } |
| 1246 | if ((type & MemberTypes.Method) == MemberTypes.Method) |
| 1247 | { |
| 1248 | result = GetMethod(name, bindingAttr); |
| 1249 | if (result) |
| 1250 | return result; |
| 1251 | } |
| 1252 | return GetMembers(name, type, bindingAttr).FirstOrDefault(); |
| 1253 | } |
| 1254 | |
| 1255 | /// <summary> |
| 1256 | /// Returns all the public members of the current type. |
no outgoing calls
no test coverage detected