Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4261 for trunk


Ignore:
Timestamp:
08/19/10 11:15:12 (14 years ago)
Author:
mkommend
Message:

Added a check for a public default ctor in the TypeSelectorDialog (ticket #1162).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs

    r4068 r4261  
    115115            valid = valid && (ShowNotInstantiableTypes || !type.IsInterface);
    116116            valid = valid && (ShowNotInstantiableTypes || !type.HasElementType);
     117            valid = valid && (ShowNotInstantiableTypes || type.GetConstructor(Type.EmptyTypes) != null); //check for public default ctor
    117118            if (valid) {
    118119              TreeNode typeNode = new TreeNode();
Note: See TracChangeset for help on using the changeset viewer.