|
|
|
@ -235,6 +235,11 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation
@@ -235,6 +235,11 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation
|
|
|
|
|
public object ConstantValue { |
|
|
|
|
get { |
|
|
|
|
ResolveResult rr = LazyInit.VolatileRead(ref this.resolvedDefaultValue); |
|
|
|
|
if (rr is ConversionResolveResult) { |
|
|
|
|
var crr = (ConversionResolveResult)rr; |
|
|
|
|
if (crr.Conversion.IsNullableConversion) |
|
|
|
|
return crr.Input.ConstantValue; |
|
|
|
|
} |
|
|
|
|
if (rr != null) { |
|
|
|
|
return rr.ConstantValue; |
|
|
|
|
} else { |
|
|
|
|