Changeset 3254 for trunk/sources
- Timestamp:
- 04/01/10 21:08:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/StringArray.cs
r3160 r3254 21 21 22 22 using System; 23 using System.Linq; 23 24 using System.Collections; 24 25 using System.Text; … … 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using System.Collections.Generic; 28 30 29 31 namespace HeuristicLab.Data { 30 32 [Item("StringArray", "Represents an array of strings.")] 31 33 [StorableClass] 32 public class StringArray : Item, IEnumerable , IStringConvertibleArray {34 public class StringArray : Item, IEnumerable<string>, IStringConvertibleArray { 33 35 [Storable] 34 36 protected string[] array; … … 89 91 } 90 92 91 public virtual IEnumerator GetEnumerator() { 92 return array.GetEnumerator(); 93 public IEnumerator<string> GetEnumerator() { 94 return (IEnumerator<string>)array.GetEnumerator(); 95 } 96 97 IEnumerator IEnumerable.GetEnumerator() { 98 return ((IEnumerable<string>)this).GetEnumerator(); 93 99 } 94 100
Note: See TracChangeset
for help on using the changeset viewer.