public GetLoginProfileResult Unmarshall(UnmarshallerContext context) { GetLoginProfileResult getLoginProfileResult = new GetLoginProfileResult(); int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.Read()) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("LoginProfile", targetDepth)) { getLoginProfileResult.LoginProfile = LoginProfileUnmarshaller.GetInstance().Unmarshall(context); continue; } } else if (context.IsEndElement && context.CurrentDepth < originalDepth) { return(getLoginProfileResult); } } return(getLoginProfileResult); }
public static LoginProfileUnmarshaller GetInstance() { if (instance == null) { instance = new LoginProfileUnmarshaller(); } return(instance); }