public UpdateTableResult Unmarshall(JsonUnmarshallerContext context) { UpdateTableResult updateTableResult = new UpdateTableResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; while (context.Read()) { if ((context.IsKey) && (context.CurrentDepth == targetDepth)) { context.Read(); context.Read(); if (context.TestExpression("TableDescription", targetDepth)) { updateTableResult.TableDescription = TableDescriptionUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth <= originalDepth) { return(updateTableResult); } } return(updateTableResult); }
public static TableDescriptionUnmarshaller GetInstance() { if (instance == null) { instance = new TableDescriptionUnmarshaller(); } return(instance); }