Пример #1
0
    public static void Main(string[] args)
    {
        // Parse an XSD formatted string to create a SoapNegativeInteger
        // object.
        string xsdIntegerString        = "-13";
        SoapNegativeInteger xsdInteger =
            SoapNegativeInteger.Parse(xsdIntegerString);

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

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

        // Print the value of the SoapNegativeInteger object.
        Console.WriteLine(
            "The value of the SoapNegativeInteger " +
            "object is {0}.", xsdInteger.Value);

        // Print the XSD type string of the SoapNegativeInteger class.
        Console.WriteLine(
            "The XSD type of the SoapNegativeInteger class " +
            "is {0}.", SoapNegativeInteger.XsdType);
    }
Пример #2
0
    static void Ctor1()
    {
        //<snippet21>
        // Create a SoapNegativeInteger object.
        SoapNegativeInteger xsdInteger =
            new SoapNegativeInteger();

        xsdInteger.Value = -14;
        Console.WriteLine(
            "The value of the SoapNegativeInteger object is {0}.",
            xsdInteger.ToString());
        //</snippet21>
    }
Пример #3
0
    static void Ctor2()
    {
        //<snippet22>
        // Create a SoapNegativeInteger object.
        decimal             decimalValue = -14;
        SoapNegativeInteger xsdInteger   =
            new SoapNegativeInteger(decimalValue);

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