source:
trunk/sources/HeuristicLab.Persistence/3.3/Auxiliary/ReflectionTools.cs
@
2115
Last change on this file since 2115 was 1703, checked in by epitzer, 16 years ago | |
---|---|
File size: 458 bytes |
Line | |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | using System.Reflection; |
6 | |
7 | namespace 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.