Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3263


Ignore:
Timestamp:
04/04/10 18:49:49 (15 years ago)
Author:
gkronber
Message:

Fixed implementation of IEnumerable<string> in StringArray (this version works). #957 (StringArray should implement IEnumerable<string>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/StringArray.cs

    r3254 r3263  
    9292
    9393    public IEnumerator<string> GetEnumerator() {
    94       return (IEnumerator<string>)array.GetEnumerator();
     94      return array.Cast<string>().GetEnumerator();
    9595    }
    9696
    9797    IEnumerator IEnumerable.GetEnumerator() {
    98       return ((IEnumerable<string>)this).GetEnumerator();
     98      return array.GetEnumerator();
    9999    }
    100100
Note: See TracChangeset for help on using the changeset viewer.