Ignore:
Timestamp:
01/29/10 16:27:44 (10 years ago)
Author:
mkommend
Message:

corrected handling of generic content types (ticket #857)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/ContentAttribute.cs

    r2696 r2724  
    6060             select a.type;
    6161    }
     62
     63    internal static IEnumerable<Type> GetViewableTypes(Type viewType) {
     64      ContentAttribute[] attributes = (ContentAttribute[])viewType.GetCustomAttributes(typeof(ContentAttribute), false);
     65      return from a in attributes
     66             select a.type;
     67    }
    6268  }
    6369}
Note: See TracChangeset for help on using the changeset viewer.