Exemple #1
0
 /// <inheritdoc/>
 protected override void WriteValue(ref WriteContext writer, T?value)
 {
     if (value.HasValue)
     {
         _codeGenerator.WriteValue(ref writer, value.Value);
     }
 }
 /// <inheritdoc/>
 protected override void Write(ref WriteContext writer)
 {
     _CodeGenerator.WriteValue(ref writer, SourceValue);
 }
 /// <inheritdoc/>
 protected override void Write(ref WriteContext writer)
 {
     _CodeGenerator.WriteValue(ref writer, (TValue)Convert.ChangeType(SourceValue, typeof(TValue)));
 }