Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/25/12 12:29:13 (12 years ago)
Author:
ascheibe
Message:

#1952 implemented reviewing comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/TypeName.cs

    r8641 r8698  
    4141    /// <value>The namespace.</value>
    4242    [Storable]
    43     #region Mono Compatibility
    44     // mono: setting the namespace is needed for generating ObjectEqualityComparer type names in the TypeLoader
    45     public string Namespace { get; internal set; }
    46     #endregion
     43    public string Namespace { get; private set; }
    4744
    4845    /// <summary>
     
    5148    /// <value>The name of the class.</value>
    5249    [Storable]
    53     #region Mono Compatibility
    54     public string ClassName { get; internal set; }
    55     #endregion
     50    public string ClassName { get; private set; }
    5651
    5752    /// <summary>
     
    116111    }
    117112
     113    internal TypeName(TypeName typeName, string className = null, string nameSpace = null) {
     114      Namespace = typeName.Namespace;
     115      ClassName = typeName.ClassName;
     116      GenericArgs = new List<TypeName>(typeName.GenericArgs);
     117      AssemblyAttribues = new Dictionary<string, string>(typeName.AssemblyAttribues);
     118      MemoryMagic = typeName.MemoryMagic;
     119      AssemblyName = typeName.AssemblyName;
     120      IsReference = typeName.IsReference;
     121      if (nameSpace != null)
     122        Namespace = nameSpace;
     123      if (className != null)
     124        ClassName = className;
     125    }
    118126
    119127    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.