Amazon.DynamoDBv2.Model.Internal.MarshallTransformations.ListTablesResponseUnmarshaller.UnmarshallResult C# (CSharp) 메소드

UnmarshallResult() 개인적인 정적인 메소드

private static UnmarshallResult ( JsonUnmarshallerContext context, ListTablesResponse response ) : void
context Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext
response Amazon.DynamoDBv2.Model.ListTablesResponse
리턴 void
        private static void UnmarshallResult(JsonUnmarshallerContext context,ListTablesResponse response)
        {
          
            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
              
              if (context.TestExpression("TableNames", targetDepth))
              {
                context.Read();
                response.TableNames = new List<String>();
                        StringUnmarshaller unmarshaller = StringUnmarshaller.GetInstance();
                while (context.Read())
                {
                  JsonToken token = context.CurrentTokenType;                
                  if (token == JsonToken.ArrayStart)
                  {
                    continue;
                  }
                  if (token == JsonToken.ArrayEnd)
                  {
                    break;
                  }
                   response.TableNames.Add(unmarshaller.Unmarshall(context));
                }
                continue;
              }
  
              if (context.TestExpression("LastEvaluatedTableName", targetDepth))
              {
                context.Read();
                response.LastEvaluatedTableName = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }
  
                if (context.CurrentDepth <= originalDepth)
                {                   
                    return;
                }
            }
                        
            return;
        }