示例#1
0
 public virtual void write( object obj, IProtocolFormatter writer )
 {
   DateTime date = (DateTime)obj;
   writer.WriteDate( date );
 }
 public override void write( object obj, IProtocolFormatter writer )
 {
   DateTime date = ((DateTimeOffset)obj).DateTime;
   writer.WriteDate( date );
 }
示例#3
0
        public virtual void write(object obj, IProtocolFormatter writer)
        {
            DateTime date = (DateTime)obj;

            writer.WriteDate(date);
        }
示例#4
0
        public override void write(object obj, IProtocolFormatter writer)
        {
            DateTime date = ((DateTimeOffset)obj).DateTime;

            writer.WriteDate(date);
        }