AWSSDK_DotNet35.UnitTests.TestTools.JsonSampleGenerator.WriteMap C# (CSharp) Method

WriteMap() private method

private WriteMap ( JsonWriter writer, Shape map ) : void
writer ThirdParty.Json.LitJson.JsonWriter
map ServiceClientGenerator.Shape
return void
        private void WriteMap(JsonWriter writer, Shape map)
        {

            writer.WriteObjectStart();

            var mapShape = map.ValueShape;
            if (!mapShape.IsStructure || !this._tcr.Contains(mapShape.Name))
            {
                for (int i = 0; i < map.Name.Length % 5 + 2; i++)
                {
                    writer.WritePropertyName("key" + i);
                    Write(writer, map.ValueShape);
                }
            }

            writer.WriteObjectEnd();
        }
    }