Rev | Line | |
---|
[1703] | 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.