本文整理汇总了C#中JsonWriter.EndArray方法的典型用法代码示例。如果您正苦于以下问题:C# JsonWriter.EndArray方法的具体用法?C# JsonWriter.EndArray怎么用?C# JsonWriter.EndArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonWriter
的用法示例。
在下文中一共展示了JsonWriter.EndArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EndExportTimestamp
/// <summary>
/// Stops exporting a timestamp. This call must be made for every call made to <see cref="StartExportTimestamp"/>.
/// </summary>
/// <param name="Json">JSON Output</param>
public static void EndExportTimestamp (JsonWriter Json)
{
Json.EndArray ();
Json.EndObject ();
}
示例2: EndExportJson
/// <summary>
/// Stops exporting Sensor Data JSON. This call must be made for every call made to <see cref="StartExportJson"/>.
/// </summary>
/// <param name="Json">JSON Output</param>
public static void EndExportJson (JsonWriter Json)
{
Json.EndArray ();
}
示例3: EndExportNode
/// <summary>
/// Stops exporting a node. This call must be made for every call made to <see cref="StartExportNode"/>.
/// </summary>
/// <param name="Json">JSON Output</param>
public static void EndExportNode (JsonWriter Json)
{
Json.EndArray ();
Json.EndObject ();
}
示例4: ExportAsJsonSensorDataCommonAttributes
//.........这里部分代码省略.........
w.WriteName ("manualEstimate");
w.WriteValue (true);
}
if ((this.status & FieldStatus.ManualReadout) != 0)
{
w.WriteName ("manualReadout");
w.WriteValue (true);
}
if ((this.status & FieldStatus.AutomaticReadout) != 0)
{
w.WriteName ("automaticReadout");
w.WriteValue (true);
}
if ((this.status & FieldStatus.TimeOffset) != 0)
{
w.WriteName ("timeOffset");
w.WriteValue (true);
}
if ((this.status & FieldStatus.Warning) != 0)
{
w.WriteName ("warning");
w.WriteValue (true);
}
if ((this.status & FieldStatus.Error) != 0)
{
w.WriteName ("error");
w.WriteValue (true);
}
if ((this.status & FieldStatus.Signed) != 0)
{
w.WriteName ("signed");
w.WriteValue (true);
}
if ((this.status & FieldStatus.Invoiced) != 0)
{
w.WriteName ("invoiced");
w.WriteValue (true);
}
if ((this.status & FieldStatus.EndOfSeries) != 0)
{
w.WriteName ("endOfSeries");
w.WriteValue (true);
}
if ((this.status & FieldStatus.PowerFailure) != 0)
{
w.WriteName ("powerFailure");
w.WriteValue (true);
}
if ((this.status & FieldStatus.InvoicedConfirmed) != 0)
{
w.WriteName ("invoiceConfirmed");
w.WriteValue (true);
}
if (this.stringIds != null && this.stringIds.Length > 0)
{
if (!string.IsNullOrEmpty (this.languageModule))
{
w.WriteName ("module");
w.WriteValue (this.languageModule);
}
w.WriteName ("stringIds");
w.BeginArray ();
foreach (FieldLanguageStep Step in this.stringIds)
{
w.BeginObject ();
w.WriteName ("stringId");
w.WriteValue (Step.StringId);
if (Step.Seed != null)
{
w.WriteName ("seed");
w.WriteValue (Step.Seed);
}
if (!string.IsNullOrEmpty (Step.LanguageModule))
{
w.WriteName ("module");
w.WriteValue (Step.LanguageModule);
}
w.EndObject ();
}
w.EndArray ();
}
}