I see.
@Nate:
Thanks for pointing this convention (Get=>O(1), Find=>O(n) out.) Wasn't obvious to me.
@Pharan, yeah, I did look into the code, and look there's one override like this:
public Attachment GetAttachment (String slotName, String attachmentName) {
return GetAttachment(data.FindSlotIndex(slotName), attachmentName);
}
Soooo...
... it actually does use a FIND method, which does loop. I'd probably not use this "GetAttachment" function in performance critical code either way and just keep a reference to the attachment.
I realize that this is rather a minor thing, but I'd go for consistency, call both of them "Find... and mark the Get... one as "deprecated" for legacy...
Just my two cents, it's not too bad as it is after all 🙂
Keep up the osmness!