Permalink
Browse files

fixed IsDisallowedCacheReturnType to narrow disallowed types, updated…

… gitignore
  • Loading branch information...
1 parent 4b8915b commit 8d17b2fded114efafb492d12ddce429bfaaf6a9c Matthew D. Groves committed May 15, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 .gitignore
  2. +1 −1 4-Caching/CacheAttribute.cs
View
@@ -45,5 +45,5 @@ _ReSharper*/
# Office Temp Files
~$*
-#monodroid private beta
-monodroid*.msi
+#ncrunch
+*ncrunch*
@@ -99,7 +99,7 @@ private string BuildCacheKey(Arguments arguments)
};
private static bool IsDisallowedCacheReturnType(Type returnType)
{
- return DisallowedTypes.Any(t => t.IsAssignableFrom(returnType));
+ return DisallowedTypes.Any(t => t == returnType);
}
}
}

0 comments on commit 8d17b2f

Please sign in to comment.