Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 10:18:05 (8 years ago)
Author:
ascheibe
Message:

#2582 created branch for Hive Web Job Manager

Location:
branches/WebJobManager
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Data/3.3/ValueTypeArray.cs

    r12012 r13656  
    3636    private const int maximumToStringLength = 100;
    3737
    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); }
    4041    }
    4142
     
    4546    [Storable]
    4647    protected List<string> elementNames;
    47     public virtual IEnumerable<string> ElementNames {
     48    public virtual IEnumerable<string> ElementNames
     49    {
    4850      get { return this.elementNames; }
    49       set {
     51      set
     52      {
    5053        if (ReadOnly) throw new NotSupportedException("ElementNames cannot be set. ValueTypeArray is read-only.");
    5154        if (value == null || !value.Any())
     
    5962    }
    6063
    61     public virtual int Length {
     64    public virtual int Length
     65    {
    6266      get { return array.Length; }
    6367      #region Mono Compatibility
    6468      // this setter should be protected, but the Mono compiler couldn't handle it
    65       set {
     69      set
     70      {
    6671        if (ReadOnly) throw new NotSupportedException("Length cannot be set. ValueTypeArray is read-only.");
    6772        if (value != Length) {
     
    7580      #endregion
    7681    }
    77     public virtual T this[int index] {
     82    public virtual T this[int index]
     83    {
    7884      get { return array[index]; }
    79       set {
     85      set
     86      {
    8087        if (ReadOnly) throw new NotSupportedException("Item cannot be set. ValueTypeArray is read-only.");
    8188        if (!value.Equals(array[index])) {
     
    8895    [Storable]
    8996    protected bool readOnly;
    90     public virtual bool ReadOnly {
     97    public virtual bool ReadOnly
     98    {
    9199      get { return readOnly; }
    92100    }
Note: See TracChangeset for help on using the changeset viewer.