Ejemplo n.º 1
0
 public QueryStringBuilder(QueryStringOutput output)
 {
     fItems = new Dictionary <string, QueryStringValue>();
     if (output == null)
     {
         fOutput = QueryStringOutput.Default;
     }
     else
     {
         fOutput = output;
     }
 }
Ejemplo n.º 2
0
        public static string WriteQueryString(this object receiver,
                                              string modelName, QueryStringOutput output)
        {
            if (receiver == null)
            {
                return(null);
            }

            IObjectSerializer  serializer = ObjectExtension.CreateSerializer("QueryString");
            QueryStringBuilder builder    = new QueryStringBuilder(output);
            object             writer     = serializer.CreateCustomWriter(builder);

            SerializerUtil.WriteSerializer(serializer, writer, receiver, modelName, ObjectUtil.WriteSettings, QName.Toolkit, null);

            return(builder.ToString());
        }
Ejemplo n.º 3
0
 public static string WriteQueryString(this object receiver, QueryStringOutput output)
 {
     return(WriteQueryString(receiver, null, output));
 }