When overridden in a derived class, returns an array of all custom attributes applied to this member. true to search this member's inheritance chain to find the attributes; otherwise, false . An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined.</
(bool inherit)
| 1111 | /// <param name="inherit"><c>true</c> to search this member's inheritance chain to find the attributes; otherwise, <c>false</c>.</param> |
| 1112 | /// <returns>An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined.</returns> |
| 1113 | public object[] GetAttributes(bool inherit) |
| 1114 | { |
| 1115 | if (_managed != null) |
| 1116 | return _managed.GetCustomAttributes(inherit); |
| 1117 | if (_custom != null) |
| 1118 | return _custom.GetAttributes(inherit); |
| 1119 | return Utils.GetEmptyArray<object>(); |
| 1120 | } |
| 1121 | |
| 1122 | /// <summary> |
| 1123 | /// When overridden in a derived class, returns the type of the object encompassed or referred to by the current array, pointer or reference type. |