// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // // Section 7.6 // The ++ and -- operators also support postfix // notation. The result of x++ or x-- is the value // of x before the operation, whereas the result // of ++x or --X is the value of x after the operation. // In either case, x itself has the same value after the // operation. // // // using System; class MyClass { public static int Main() { float test1 = 2.0f; float test2 = test1++; float test3 = ++test1; if ((test2 == 2.0f) && (test3 == 4.0f)) { return 100; } else { return 1; } //return 1; } } //