Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This method implements the test condition for
- // finding the ResolutionInfo.
- private static bool IsResolutionInfo(ImageResource res)
- {
- return res.ID == (int)ResourceIDs.ResolutionInfo;
- }
- get
- {
- return (ResolutionInfo)m_imageResources.Find(IsResolutionInfo);
- }
- get
- {
- return (ResolutionInfo)m_imageResources.Find(res => res.ID == (int)ResourceIDs.ResolutionInfo);
- }
- public T Find(Predicate<T> match)
- {
- if (match == null)
- {
- ThrowHelper.ThrowArgumentNullException(ExceptionArgument.match);
- }
- for (int i = 0; i < this._size; i++)
- {
- if (match(this._items[i]))
- {
- return this._items[i];
- }
- }
- return default(T);
- }
Add Comment
Please, Sign In to add comment