Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/ReflectionTools.cs @ 2396

Last change on this file since 2396 was 1703, checked in by epitzer, 16 years ago

Create folder with auxiliary classes. (#606)

File size: 458 bytes
RevLine 
[1703]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Reflection;
6
7namespace HeuristicLab.Persistence.Auxiliary {
8
9  internal class ReflectionTools {
10
11    public static bool HasDefaultConstructor(Type t) {
12      return t.GetConstructor(
13        BindingFlags.Instance |
14        BindingFlags.NonPublic |
15        BindingFlags.Public,
16        null, Type.EmptyTypes, null) != null;
17    }
18
19  }
20}
Note: See TracBrowser for help on using the repository browser.