Ejemplo n.º 1
0
    public static void Main(string[] args)
    {
        //<snippet11>
        // Parse an XSD formatted string to create a SoapInteger object.
        string      xsdIntegerString = "-13";
        SoapInteger xsdInteger       = SoapInteger.Parse(xsdIntegerString);

        //</snippet11>

        //<snippet12>
        // Print the value of the SoapInteger object in XSD format.
        Console.WriteLine("The SoapInteger object in XSD format is {0}.",
                          xsdInteger.ToString());
        //</snippet12>

        //<snippet13>
        // Print the XSD type string of the SoapInteger object.
        Console.WriteLine("The XSD type of the SoapInteger " +
                          "object is {0}.", xsdInteger.GetXsdType());
        //</snippet13>

        //<snippet14>
        // Print the value of the SoapInteger object.
        Console.WriteLine(
            "The value of the SoapInteger object is {0}.",
            xsdInteger.Value);
        //</snippet14>

        //<snippet16>
        // Print the XSD type string of the SoapInteger class.
        Console.WriteLine("The XSD type of the SoapInteger class " +
                          "is {0}.", SoapInteger.XsdType);
        //</snippet16>
    }
Ejemplo n.º 2
0
    static void Ctor1()
    {
        //<snippet21>
        // Create a SoapInteger object.
        SoapInteger xsdInteger = new SoapInteger();

        xsdInteger.Value = -14;
        Console.WriteLine(
            "The value of the SoapInteger object is {0}.",
            xsdInteger.ToString());
        //</snippet21>
    }
Ejemplo n.º 3
0
    static void Ctor2()
    {
        //<snippet22>
        // Create a SoapInteger object.
        decimal     decimalValue = -14;
        SoapInteger xsdInteger   = new SoapInteger(decimalValue);

        Console.WriteLine(
            "The value of the SoapInteger object is {0}.",
            xsdInteger.ToString());
        //</snippet22>
    }