Exemplo n.º 1
0
 protected virtual void WriteUnsignedLit(Value value)
 {
     if (value is Literal)
     {
         Literal literal = (Literal)value;                
         WriteText(ProviderHelper.FormatLiteral(literal.Data));
     }
     else if (value is DecimalValue)
     {
         DecimalValue udecimal = (DecimalValue)value;
         WriteText(udecimal.Data.ToString(CultureInfo.InvariantCulture));
     }
     else if (value is DoubleValue)
     {
         DoubleValue udouble = (DoubleValue)value;
         WriteText(udouble.Data.ToString(CultureInfo.InvariantCulture));
     }
     else if (value is IntegerValue)
     {
         IntegerValue uinteger = (IntegerValue)value;
         WriteText(uinteger.Data.ToString(CultureInfo.InvariantCulture));
     }
 }
Exemplo n.º 2
0
 protected virtual void WriteSortKey(Value value)
 {
     if (value is Qname)
         WriteQualifiedName((Qname)value);
     else
         WriteUnsignedLit(value);
 }