Ignore:
Timestamp:
1/21/2010 2:59:08 AM (2 years ago)
Author:
lowjoel
Message:

Removed unnecessary using declarations and fixed a sharing violation with the PostDataBuilder? class (due to an undisposed stream which I used when getting the Boundary property.) Addresses #307: Eraser Updater restructuring and addresses #308: Upgrade BlackBox? to use the ProgressManager? classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Util/PostDataBuilder.cs

    r1619 r1626  
    122122            set 
    123123            { 
    124                 if (Stream.Length != 0) 
    125                     throw new InvalidOperationException("The boundary cannot be set as data " + 
    126                         "already exists in the buffer."); 
     124                using (Stream stream = Stream) 
     125                    if (stream.Length != 0) 
     126                        throw new InvalidOperationException("The boundary cannot be set as data " + 
     127                            "already exists in the buffer."); 
    127128                boundary = value; 
    128129            } 
Note: See TracChangeset for help on using the changeset viewer.