本文整理汇总了C#中Writer.WriteBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# Writer.WriteBoolean方法的具体用法?C# Writer.WriteBoolean怎么用?C# Writer.WriteBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Writer
的用法示例。
在下文中一共展示了Writer.WriteBoolean方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 ();
}
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 ();
}
}
示例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 ();
}
((MeshResponse)this).SerializeX(_Writer, false, ref _first);
if (__Valid){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Valid", 1);
_Writer.WriteBoolean (Valid);
}
if (__Minimum){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Minimum", 1);
_Writer.WriteInteger32 (Minimum);
}
if (__Maximum){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Maximum", 1);
_Writer.WriteInteger32 (Maximum);
}
if (InvalidCharacters != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("InvalidCharacters", 1);
_Writer.WriteString (InvalidCharacters);
}
if (Reason != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Reason", 1);
_Writer.WriteString (Reason);
}
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 (__AutoGenerate){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("AutoGenerate", 1);
_Writer.WriteBoolean (AutoGenerate);
}
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 (NeverAsk != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("NeverAsk", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in NeverAsk) {
_Writer.WriteArraySeparator (ref _firstarray);
_Writer.WriteString (_index);
}
_Writer.WriteArrayEnd ();
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}
示例4: Serialize
public new void Serialize(Writer Writer, bool wrap, ref bool first)
{
if (wrap) {
Writer.WriteObjectStart ();
}
((BindRequest)this).Serialize(Writer, false, ref first);
if (Account != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Account", 1);
Writer.WriteString (Account);
}
if (Domain != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Domain", 1);
Writer.WriteString (Domain);
}
if (__HavePasscode){
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("HavePasscode", 1);
Writer.WriteBoolean (HavePasscode);
}
if (__HaveDisplay){
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("HaveDisplay", 1);
Writer.WriteBoolean (HaveDisplay);
}
if (Challenge != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Challenge", 1);
Writer.WriteBinary (Challenge);
}
if (DeviceID != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("DeviceID", 1);
Writer.WriteString (DeviceID);
}
if (DeviceURI != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("DeviceURI", 1);
Writer.WriteString (DeviceURI);
}
if (DeviceImage != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("DeviceImage", 1);
DeviceImage.Serialize (Writer, false);
}
if (DeviceName != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("DeviceName", 1);
Writer.WriteString (DeviceName);
}
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 (Identifier != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Identifier", 1);
Identifier.Serialize (Writer, false);
}
if (Policy != null) {
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("Policy", 1);
Writer.WriteArrayStart ();
bool firstarray = true;
foreach (string _index in Policy) {
Writer.WriteArraySeparator (ref firstarray);
Writer.WriteString (_index);
}
Writer.WriteArrayEnd ();
}
if (__ProveIt){
Writer.WriteObjectSeparator (ref first);
Writer.WriteToken ("ProveIt", 1);
Writer.WriteBoolean (ProveIt);
}
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 ();
}
if (ServiceName != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("ServiceName", 1);
_Writer.WriteString (ServiceName);
}
if (__Port){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Port", 1);
_Writer.WriteInteger32 (Port);
}
if (Prefix != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Prefix", 1);
_Writer.WriteString (Prefix);
}
if (Security != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Security", 1);
_Writer.WriteArrayStart ();
bool _firstarray = true;
foreach (var _index in Security) {
_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 (URI != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("URI", 1);
_Writer.WriteString (URI);
}
if (Authentication != null) {
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Authentication", 1);
_Writer.WriteString (Authentication);
}
if (__TimeOut){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("TimeOut", 1);
_Writer.WriteInteger32 (TimeOut);
}
if (__Polling){
_Writer.WriteObjectSeparator (ref _first);
_Writer.WriteToken ("Polling", 1);
_Writer.WriteBoolean (Polling);
}
if (_wrap) {
_Writer.WriteObjectEnd ();
}
}