Free cookie consent management tool by TermsFeed Policy Generator

Changes between Initial Version and Version 1 of Ticket #1323, comment 1


Ignore:
Timestamp:
12/06/10 23:31:11 (13 years ago)
Author:
gkronber
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1323, comment 1

    initial v1  
    33{{{
    44Item:
    5   private Bitmap itemImage;
     5  private [static] Bitmap itemImage;
    66  public Bitmap ItemImage {
     7    [lock(locker)]
    78    if (itemImage==null) {
    89       itemImage = CreateItemImage();
     
    1617  }
    1718}}}
     19
     20
     21If we want to have one Bitmap per type instead of one Bitmap per Item instance we can still make the itemImage field static, however, we probably also need to make the !ItemImage getter thread safe.