Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 580c4a7

Browse files
committed
properties: Correct overzealous commit
1 parent 823845b commit 580c4a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TypeImplementer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,19 +643,19 @@ internal static MethodCaller GenGetAllCall (Type @interface)
643643
var dctT = typeof(Dictionary<,>).MakeGenericType (strObj);
644644

645645
if (null == dctT) {
646-
throw new ReflectionTypeLoadException ("1");
646+
throw new Exception ("1");
647647
}
648648

649-
var dctConstructor = dctT.GetConstructor (new Type[0]);
649+
var dctConstructor = dctT.GetConstructor (Type.EmptyTypes);
650650

651651
if (null == dctConstructor) {
652-
throw new ReflectionTypeLoadException ("2");
652+
throw new Exception ("2");
653653
}
654654

655655
var dctAdd = dctT.GetMethod ("Add", strObj);
656656

657657
if (null == dctAdd) {
658-
throw new ReflectionTypeLoadException ("3");
658+
throw new Exception ("3");
659659
}
660660

661661
var accessors = @interface.GetProperties ().Where (x => null != x.GetGetMethod());

0 commit comments

Comments
 (0)