Ejemplo n.º 1
0
        public void WriteJson(JsonWriter writer)
        {
            writer.WriteStartObject();

            writer.WritePropertyName(nameof(Duration));
            writer.WriteRawValue(Duration.ToRoundTripString());
            writer.WritePropertyName(nameof(TimeStep));
            writer.WriteRawValue(TimeStep.ToRoundTripString());

            writer.WritePropertyName(nameof(MeshKeys));
            writer.WriteStartArray();
            for (int i = 0; i < MeshKeys.Count; ++i)
            {
                writer.WriteRawValue(MeshKeys[i].ToRoundTripString());
            }
            writer.WriteEndArray();

            writer.WriteEndObject();
        }