Ejemplo n.º 1
0
        public static void Test_IsValueWriteAtomic()
        {
            int    testInt32  = 100;
            string testString = "abc";

            StringValues stringValues = new StringValues(testString);

            //ReadOnlySpan<char> spanFromString = testString.AsSpan();

            Console.WriteLine($"IsValueWriteAtomic {testInt32.GetType().ToString()} : {ScratchPadOne.IsValueWriteAtomic(testInt32).ToString()}");
            Console.WriteLine($"IsValueWriteAtomic {testString.GetType().ToString()} : {ScratchPadOne.IsValueWriteAtomic(testString).ToString()}");
            Console.WriteLine($"IsValueWriteAtomic {stringValues.GetType().ToString()} : {ScratchPadOne.IsValueWriteAtomic(stringValues).ToString()}");
        }