本文整理汇总了C#中Writer.WriteArraySeparator方法的典型用法代码示例。如果您正苦于以下问题:C# Writer.WriteArraySeparator方法的具体用法?C# Writer.WriteArraySeparator怎么用?C# Writer.WriteArraySeparator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Writer
的用法示例。
在下文中一共展示了Writer.WriteArraySeparator方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 ();
}
((ApplicationProfilePrivate)this).SerializeX(_Writer, false, ref _first);
if (Account != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Account", 1);
_Writer.WriteString (Account);
}
if (DeviceEntries != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("DeviceEntries", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in DeviceEntries) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (HostEntries != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("HostEntries", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in HostEntries) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
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 ();
}
((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 ();
}
}
示例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 (__Major){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Major", 1);
_Writer.WriteInteger32 (Major);
}
if (__Minor){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Minor", 1);
_Writer.WriteInteger32 (Minor);
}
if (Encodings != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Encodings", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Encodings) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (URI != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("URI", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in URI) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例4: 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 (Key != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Key", 1);
_Writer.WriteString (Key);
}
if (Entries != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Entries", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Entries) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例5: Serialize
public new void Serialize(Writer Writer, bool wrap, ref bool first)
{
if (wrap) {
Writer.WriteObjectStart ();
}
((QRequest)this).Serialize(Writer, false, ref first);
if (Service != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Service", 1);
Writer.WriteArrayStart ();
bool firstarray = true;
foreach (Service _index in Service) {
Writer.WriteArraySeparator (ref firstarray);
bool firstinner = true;
_index.Serialize (Writer, true, ref firstinner);
}
Writer.WriteArrayEnd ();
}
if (wrap) {
Writer.WriteObjectEnd ();
}
}
示例6: 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 (DataItems != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("DataItems", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in DataItems) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (PageKey != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("PageKey", 1);
_Writer.WriteString (PageKey);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例7: 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 (Protected != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("protected", 1);
_Writer.WriteBinary (Protected);
}
if (Unprotected != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("unprotected", 1);
_Writer.WriteBinary (Unprotected);
}
if (IV != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("iv", 1);
_Writer.WriteBinary (IV);
}
if (CipherText != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("ciphertext", 1);
_Writer.WriteBinary (CipherText);
}
if (JTag != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("tag", 1);
_Writer.WriteBinary (JTag);
}
if (AdditionalAuthenticatedData != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("aad", 1);
_Writer.WriteBinary (AdditionalAuthenticatedData);
}
if (Recipients != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("recipients", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Recipients) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例8: 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 (Sites != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Sites", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Sites) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (DNS != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("DNS", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in DNS) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (Prefix != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Prefix", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Prefix) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (CTL != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("CTL", 1);
_Writer.WriteBinary (CTL);
}
if (WebPKI != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("WebPKI", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in WebPKI) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例9: Serialize
public new void Serialize(Writer Writer, bool wrap, ref bool first)
{
if (wrap) {
Writer.WriteObjectStart ();
}
((BindResponse)this).Serialize(Writer, false, ref first);
if (Challenge != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Challenge", 1);
Writer.WriteBinary (Challenge);
}
if (ChallengeResponse != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("ChallengeResponse", 1);
Writer.WriteBinary (ChallengeResponse);
}
if (VerificationImage != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("VerificationImage", 1);
Writer.WriteArrayStart ();
bool firstarray = true;
foreach (ImageLink _index in VerificationImage) {
Writer.WriteArraySeparator (ref firstarray);
bool firstinner = true;
_index.Serialize (Writer, true, ref firstinner);
}
Writer.WriteArrayEnd ();
}
if (wrap) {
Writer.WriteObjectEnd ();
}
}
示例10: 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 (EmailAddress != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("EmailAddress", 1);
_Writer.WriteString (EmailAddress);
}
if (ReplyToAddress != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("ReplyToAddress", 1);
_Writer.WriteString (ReplyToAddress);
}
if (DisplayName != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("DisplayName", 1);
_Writer.WriteString (DisplayName);
}
if (AccountName != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("AccountName", 1);
_Writer.WriteString (AccountName);
}
if (Inbound != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Inbound", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Inbound) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (Outbound != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Outbound", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Outbound) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (Sign != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Sign", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Sign) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
if (Encrypt != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Encrypt", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Encrypt) {
_Writer.WriteArraySeparator (ref _firstarray);
// This is an untagged structure. Cannot inherit.
//_Writer.WriteObjectStart();
//_Writer.WriteToken(_index.Tag(), 1);
bool firstinner = true;
_index.Serialize (_Writer, true, ref firstinner);
//_Writer.WriteObjectEnd();
}
_Writer.WriteArrayEnd ();
}
//.........这里部分代码省略.........
示例11: 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 (Sites != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Sites", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Sites) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (Username != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Username", 1);
_Writer.WriteString (Username);
}
if (Password != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Password", 1);
_Writer.WriteString (Password);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}