Browse files

Don't try to AutoWire string properties

  • Loading branch information...
1 parent bd16ddc commit 822d8e319e8756ab0ab9e841b1bed7b7f2489548 @mythz mythz committed Jan 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ServiceStack/Funq/AutoWireHelpers.cs
View
2 src/ServiceStack/Funq/AutoWireHelpers.cs
@@ -76,7 +76,7 @@ public static void AutoWire(Container container, object instance)
if (!autoWireCache.TryGetValue(instanceType, out setters))
{
setters = instanceType.GetPublicProperties()
- .Where(x => x.CanWrite && !x.PropertyType.IsValueType)
+ .Where(x => x.CanWrite && !x.PropertyType.IsValueType && x.PropertyType != typeof(string))
.Select(x => GenerateAutoWireFnForProperty(container, propertyResolveFn, x, instanceType))
.ToArray();

0 comments on commit 822d8e3

Please sign in to comment.