Beispiel #1
0
 /// <summary>
 /// Write the transformation result to a stream with help of an <see cref="ExportObject"/>
 /// </summary>
 /// <param name="export">helper class for write objects</param>
 /// <param name="property"><see cref="dao.Property"/> to transform to</param>
 public virtual void WriteTransform(ExportObject export, dao.Property property)
 {
     try {
         export.WriteProperty(property.Name, Transform(property));
     } catch {
         export.WriteProperty(property.Name, String.Empty);
     }
 }
Beispiel #2
0
 public override string Transform(object value)
 {
     dao.Property property = (dao.Property)value;
     return(String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0},{1}", property.Type, property.Value));
 }
Beispiel #3
0
 public override void WriteTransform(ExportObject export, dao.Property property)
 {
     //write nothing at all
 }