You can’t declare an int as null. You can make it nullable though by doing it a nullable int like this:
public int? age;
More Related Contents:
- Login Form in C# windows Presentation Foundation
- share a message in Linkedin via windows phone
- Clear browser history in Asp.net MVC3 using c#? [closed]
- How do you create a dropdownlist from an enum in ASP.NET MVC?
- How to convert image to byte array
- An implementation of the fast Fourier transform (FFT) in C# [closed]
- What is the use of “ref” for reference-type variables in C#?
- How to fix “Referenced assembly does not have a strong name” error
- File getting copied to SysWOW64 instead of System32
- How to access a specific item in a Listbox with DataTemplate?
- DateTime format to SQL format using C#
- Using Prepared Statement in C# with Mysql
- (.1f+.2f==.3f) != (.1f+.2f).Equals(.3f) Why?
- what’s difference between Environment.Exit() and Application.Shutdown()?
- How do I make Chrome Headless after I login manually
- How to solve disturbance in my bot in c#?
- C# using others code
- Selectively coloring text in RichTextBox
- View NuGet package dependency hierarchy
- What happens if I don’t call Dispose on the pen object?
- ASP.NET C# Static Variables are global?
- How to serialize static or const member variables using JSON.NET?
- File-size format provider
- Cannot implicitly convert type from Task
- I don’t understand why we need the ‘new’ keyword
- Using DI container in unit tests
- Razor/CSHTML – Any Benefit over what we have? [closed]
- Singleton double-check concurrency issue
- using statement with multiple variables [duplicate]
- How to show text in combobox when no item selected?