F
F
FAwafawf12122021-06-23 10:46:50
C++ / C#
FAwafawf1212, 2021-06-23 10:46:50

How to convert int to null?

How can int be converted to null. There are fields with data, the user fills them in and they programmatically enter values ​​into variable values, but I need the user to be able to cancel the selection and instead of int, a null value for the WPF c# database comes.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ananiev, 2021-06-23
@SaNNy32

use typeint?

M
Mikhail Filonenko, 2021-06-23
@kombain32

https://docs.microsoft.com/ru-ru/dotnet/csharp/lan...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question