Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (14 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

File:
1 edited

Legend:

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

    r3047 r3048  
    2828
    2929namespace HeuristicLab.Data {
    30   [Item("ValueTypeArrayData<T>", "A base class for representing arrays of value types.")]
     30  [Item("ValueTypeArray<T>", "A base class for representing arrays of value types.")]
    3131  [StorableClass]
    32   public class ValueTypeArrayData<T> : Item, IEnumerable where T : struct {
     32  public class ValueTypeArray<T> : Item, IEnumerable where T : struct {
    3333    [Storable]
    3434    private T[] array;
     
    5353    }
    5454
    55     public ValueTypeArrayData() {
     55    public ValueTypeArray() {
    5656      array = new T[0];
    5757    }
    58     public ValueTypeArrayData(int length) {
     58    public ValueTypeArray(int length) {
    5959      array = new T[length];
    6060    }
    61     public ValueTypeArrayData(T[] elements) {
     61    public ValueTypeArray(T[] elements) {
    6262      if (elements == null) throw new ArgumentNullException();
    6363      array = (T[])elements.Clone();
    6464    }
    65     protected ValueTypeArrayData(ValueTypeArrayData<T> elements) {
     65    protected ValueTypeArray(ValueTypeArray<T> elements) {
    6666      if (elements == null) throw new ArgumentNullException();
    6767      array = (T[])elements.array.Clone();
     
    6969
    7070    public override IDeepCloneable Clone(Cloner cloner) {
    71       ValueTypeArrayData<T> clone = (ValueTypeArrayData<T>)base.Clone(cloner);
     71      ValueTypeArray<T> clone = (ValueTypeArray<T>)base.Clone(cloner);
    7272      clone.array = (T[])array.Clone();
    7373      return clone;
Note: See TracChangeset for help on using the changeset viewer.