Example #1
0
 public override string ToString()
 {
     if (DataMissing.IsSingleton(this.value))
     {
         return(GetMime() + ";m=DataMissing");
     }
     else
     {
         return(GetMime() + GetMimeSimpleData() + "");
     }
 }
Example #2
0
 public string GetMimeSimpleData()
 {
     if (DataMissing.IsSingleton(value))
     {
         // no value to report
         return("");
     }
     else
     {
         if (type == ValueType.Boolean)
         {
             return(";d=" + value.ToString());
         }
         else if (type == ValueType.Int32)
         {
             return(";d=" + value.ToString());
         }
         else if (type == ValueType.Int16)
         {
             return(";d=" + value.ToString());
         }
         else if (type == ValueType.Int64)
         {
             return(";d=" + value.ToString());
         }
         else if (type == ValueType.Single)
         {
             return(";d=" + value.ToString());
         }
         else if (type == ValueType.Double)
         {
             return(";d=" + value.ToString());
         }
         else
         {
             return("");
         }
     }
 }