- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Data/3.3/ValueTypeArray.cs
r12012 r13656 36 36 private const int maximumToStringLength = 100; 37 37 38 public static new Image StaticItemImage { 39 get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; } 38 public static new Image StaticItemImage 39 { 40 get { return new Bitmap(25, 25); } 40 41 } 41 42 … … 45 46 [Storable] 46 47 protected List<string> elementNames; 47 public virtual IEnumerable<string> ElementNames { 48 public virtual IEnumerable<string> ElementNames 49 { 48 50 get { return this.elementNames; } 49 set { 51 set 52 { 50 53 if (ReadOnly) throw new NotSupportedException("ElementNames cannot be set. ValueTypeArray is read-only."); 51 54 if (value == null || !value.Any()) … … 59 62 } 60 63 61 public virtual int Length { 64 public virtual int Length 65 { 62 66 get { return array.Length; } 63 67 #region Mono Compatibility 64 68 // this setter should be protected, but the Mono compiler couldn't handle it 65 set { 69 set 70 { 66 71 if (ReadOnly) throw new NotSupportedException("Length cannot be set. ValueTypeArray is read-only."); 67 72 if (value != Length) { … … 75 80 #endregion 76 81 } 77 public virtual T this[int index] { 82 public virtual T this[int index] 83 { 78 84 get { return array[index]; } 79 set { 85 set 86 { 80 87 if (ReadOnly) throw new NotSupportedException("Item cannot be set. ValueTypeArray is read-only."); 81 88 if (!value.Equals(array[index])) { … … 88 95 [Storable] 89 96 protected bool readOnly; 90 public virtual bool ReadOnly { 97 public virtual bool ReadOnly 98 { 91 99 get { return readOnly; } 92 100 }
Note: See TracChangeset
for help on using the changeset viewer.