| 1261 | } |
| 1262 | |
| 1263 | String BfTypeReference::ToCleanAttributeString() |
| 1264 | { |
| 1265 | // ToString might return something like "System.InlineAttribute", which we want to clean before we test for "Inline" |
| 1266 | auto typeRefName = ToString(); |
| 1267 | if (typeRefName.EndsWith("Attribute")) |
| 1268 | { |
| 1269 | int attribNameStart = (int)typeRefName.LastIndexOf('.'); |
| 1270 | if (attribNameStart != -1) |
| 1271 | typeRefName.Remove(0, attribNameStart + 1); |
| 1272 | |
| 1273 | if (typeRefName.EndsWith("Attribute")) |
| 1274 | typeRefName.RemoveFromEnd(9); |
| 1275 | } |
| 1276 | |
| 1277 | return typeRefName; |
| 1278 | } |
| 1279 | |
| 1280 | ////////////////////////////////////////////////////////////////////////// |
| 1281 |
no test coverage detected