CorElementType.ELEMENT_TYPE_BOOLEAN => (*(int*)&buffer != 0),
CorElementType.ELEMENT_TYPE_R4 => *(float*)&buffer,
CorElementType.ELEMENT_TYPE_R8 => *(double*)&buffer,
- CorElementType.ELEMENT_TYPE_STRING => stringVal == null ? string.Empty : stringVal,
+ CorElementType.ELEMENT_TYPE_STRING => stringVal ?? string.Empty,
CorElementType.ELEMENT_TYPE_CLASS => null,
_ => throw new FormatException(SR.Arg_BadLiteralFormat),
};
// to construct ResourceSets.
public virtual Type ResourceSetType
{
- get { return (_userResourceSet == null) ? typeof(RuntimeResourceSet) : _userResourceSet; }
+ get { return _userResourceSet ?? typeof(RuntimeResourceSet); }
}
protected UltimateResourceFallbackLocation FallbackLocation