Reporter | Eugene Komisarenko (ekomisarenko) |
---|---|
Created | Mar 5, 2011 12:49:12 AM |
Updated | Jan 24, 2012 5:21:32 PM |
Resolved | Jan 24, 2012 5:21:32 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Can't Reproduce |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
ReSharper suggests to do optimization for the following code saying that RefrectedType property can not be null.
var reflectedType = propertyType.ReflectedType;
return reflectedType == null ? DeserializeObject(objectSrc, propertyType) : DeserializeObject(objectSrc, reflectedType);
After optimization code becomes broken, because ReflectedType can actually be null.
var reflectedType = propertyType.ReflectedType;
return reflectedType == null ? DeserializeObject(objectSrc, propertyType) : DeserializeObject(objectSrc, reflectedType);
After optimization code becomes broken, because ReflectedType can actually be null.