Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/14/19 22:33:44 (5 years ago)
Author:
abeham
Message:

#2521: reverted r14429

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Core/3.3/Attributes/ItemAttribute.cs

    r14429 r16532  
    3939      set { description = value == null ? string.Empty : value; }
    4040    }
    41     public bool ExcludeGenericTypeInfo { get; set; }
    4241
    43     public ItemAttribute() : this(string.Empty, string.Empty, false) { }
    44     public ItemAttribute(string name, string description) : this(name, description, false) { }
    45     public ItemAttribute(string name, string description, bool excludeGenericTypeInfo) {
     42    public ItemAttribute() {
     43      Name = string.Empty;
     44      Description = string.Empty;
     45    }
     46    public ItemAttribute(string name, string description) {
    4647      Name = name;
    4748      Description = description;
    48       ExcludeGenericTypeInfo = excludeGenericTypeInfo;
    4949    }
    5050
     
    5252      object[] attribs = type.GetCustomAttributes(typeof(ItemAttribute), false);
    5353      if (attribs.Length > 0) {
    54         var attribute = (ItemAttribute)attribs[0];
    55         string name = attribute.Name;
    56         if (!attribute.ExcludeGenericTypeInfo && type.IsGenericType) {
     54        string name = ((ItemAttribute)attribs[0]).Name;
     55        if (type.IsGenericType) {
    5756          name += "<";
    5857          Type[] typeParams = type.GetGenericArguments();
Note: See TracChangeset for help on using the changeset viewer.