Skip to content

Commit 663b068

Browse files
committed
fix tests
1 parent 7dad0af commit 663b068

14 files changed

Lines changed: 105 additions & 165 deletions

lib/net45/ServiceStack.Client.dll

512 Bytes
Binary file not shown.

lib/net45/ServiceStack.Common.dll

0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.

lib/net45/ServiceStack.dll

-427 KB
Binary file not shown.
512 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.
-250 KB
Binary file not shown.

src/ServiceStack.Text.Core.sln

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/ServiceStack.Text/AutoMappingUtils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ public static Array PopulateArray(Type type, Dictionary<Type, int> recursionInfo
583583
//TODO: replace with InAssignableFrom
584584
public static bool CanCast(Type toType, Type fromType)
585585
{
586-
if (toType.IsInterface())
586+
if (toType.IsInterface)
587587
{
588-
var interfaceList = fromType.Interfaces().ToList();
588+
var interfaceList = fromType.GetInterfaces().ToList();
589589
if (interfaceList.Contains(toType)) return true;
590590
}
591591
else
@@ -596,7 +596,7 @@ public static bool CanCast(Type toType, Type fromType)
596596
{
597597
areSameTypes = baseType == toType;
598598
}
599-
while (!areSameTypes && (baseType = fromType.BaseType()) != null);
599+
while (!areSameTypes && (baseType = fromType.BaseType) != null);
600600

601601
if (areSameTypes) return true;
602602
}

0 commit comments

Comments
 (0)