From 204ca4849b195f1ac82ff02a84f31024440a6b9e Mon Sep 17 00:00:00 2001 From: Kevin Waldock Date: Tue, 5 Mar 2024 08:25:39 +0100 Subject: [PATCH] Correct ValueType example --- snippets/csharp/System/ValueType/Overview/example1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/csharp/System/ValueType/Overview/example1.cs b/snippets/csharp/System/ValueType/Overview/example1.cs index a1a60e035f9..590bf08a3f6 100644 --- a/snippets/csharp/System/ValueType/Overview/example1.cs +++ b/snippets/csharp/System/ValueType/Overview/example1.cs @@ -53,7 +53,7 @@ public static bool IsInteger(ValueType value) public static bool IsFloat(ValueType value) { - return (value is float | value is double | value is Decimal); + return (value is float || value is double || value is Decimal); } public static bool IsNumeric(ValueType value)