本文整理汇总了C#中Writer.WriteDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# Writer.WriteDateTime方法的具体用法?C# Writer.WriteDateTime怎么用?C# Writer.WriteDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Writer
的用法示例。
在下文中一共展示了Writer.WriteDateTime方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SerializeX
/// <summary>
/// Serialize this object to the specified output stream.
/// Unlike the Serlialize() method, this method is not inherited from the
/// parent class allowing a specific version of the method to be called.
/// </summary>
/// <param name="_Writer">Output stream</param>
/// <param name="_wrap">If true, output is wrapped with object
/// start and end sequences '{ ... }'.</param>
/// <param name="_first">If true, item is the first entry in a list.</param>
public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
if (_wrap) {
_Writer.WriteObjectStart ();
}
((MeshResponse)this).SerializeX(_Writer, false, ref _first);
if (__LastWriteTime){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("LastWriteTime", 1);
_Writer.WriteDateTime (LastWriteTime);
}
if (__LastCheckpointTime){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("LastCheckpointTime", 1);
_Writer.WriteDateTime (LastCheckpointTime);
}
if (__NextCheckpointTime){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("NextCheckpointTime", 1);
_Writer.WriteDateTime (NextCheckpointTime);
}
if (CheckpointValue != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("CheckpointValue", 1);
_Writer.WriteString (CheckpointValue);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例2: SerializeX
/// <summary>
/// Serialize this object to the specified output stream.
/// Unlike the Serlialize() method, this method is not inherited from the
/// parent class allowing a specific version of the method to be called.
/// </summary>
/// <param name="_Writer">Output stream</param>
/// <param name="_wrap">If true, output is wrapped with object
/// start and end sequences '{ ... }'.</param>
/// <param name="_first">If true, item is the first entry in a list.</param>
public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
if (_wrap) {
_Writer.WriteObjectStart ();
}
if (TransactionID != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("TransactionID", 1);
_Writer.WriteString (TransactionID);
}
if (PrimaryKey != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("PrimaryKey", 1);
_Writer.WriteString (PrimaryKey);
}
if (PriorTransactionID != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("PriorTransactionID", 1);
_Writer.WriteString (PriorTransactionID);
}
if (Action != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Action", 1);
_Writer.WriteString (Action);
}
if (__Added){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Added", 1);
_Writer.WriteDateTime (Added);
}
if (Keys != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Keys", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Keys) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteObjectStart();
_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (Data != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Data", 1);
_Writer.WriteBinary (Data);
}
if (Text != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Text", 1);
_Writer.WriteString (Text);
}
if (__Pending){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Pending", 1);
_Writer.WriteBoolean (Pending);
}
if (__Commit){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Commit", 1);
_Writer.WriteBoolean (Commit);
}
if (__Rollback){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Rollback", 1);
_Writer.WriteBoolean (Rollback);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例3: SerializeX
/// <summary>
/// Serialize this object to the specified output stream.
/// Unlike the Serlialize() method, this method is not inherited from the
/// parent class allowing a specific version of the method to be called.
/// </summary>
/// <param name="_Writer">Output stream</param>
/// <param name="_wrap">If true, output is wrapped with object
/// start and end sequences '{ ... }'.</param>
/// <param name="_first">If true, item is the first entry in a list.</param>
public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
if (_wrap) {
_Writer.WriteObjectStart ();
}
if (__Created){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Created", 1);
_Writer.WriteDateTime (Created);
}
if (__Modified){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Modified", 1);
_Writer.WriteDateTime (Modified);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例4: Serialize
public virtual void Serialize(Writer Writer, bool wrap, ref bool first)
{
if (wrap) {
Writer.WriteObjectStart ();
}
if (Protocol != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Protocol", 1);
Writer.WriteString (Protocol);
}
if (Secret != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Secret", 1);
Writer.WriteBinary (Secret);
}
if (Encryption != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Encryption", 1);
Writer.WriteString (Encryption);
}
if (Authentication != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Authentication", 1);
Writer.WriteString (Authentication);
}
if (Ticket != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Ticket", 1);
Writer.WriteBinary (Ticket);
}
if (__Expires){
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Expires", 1);
Writer.WriteDateTime (Expires);
}
if (wrap) {
Writer.WriteObjectEnd ();
}
}
示例5: SerializeX
/// <summary>
/// Serialize this object to the specified output stream.
/// Unlike the Serlialize() method, this method is not inherited from the
/// parent class allowing a specific version of the method to be called.
/// </summary>
/// <param name="_Writer">Output stream</param>
/// <param name="_wrap">If true, output is wrapped with object
/// start and end sequences '{ ... }'.</param>
/// <param name="_first">If true, item is the first entry in a list.</param>
public new void SerializeX (Writer _Writer, bool _wrap, ref bool _first) {
if (_wrap) {
_Writer.WriteObjectStart ();
}
((Entry)this).SerializeX(_Writer, false, ref _first);
if (Names != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Names", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Names) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (__Updated){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Updated", 1);
_Writer.WriteDateTime (Updated);
}
if (NotaryToken != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("NotaryToken", 1);
_Writer.WriteString (NotaryToken);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}