Top "Nullable" questions

The nullable tag is for issues relating to nullable members or types.

How to convert C# nullable int to int

How do I convert a nullable int to an int? Suppose I have 2 type of int as below: int? v1; …

c# nullable
How to declare a type as nullable in TypeScript?

I have an interface in TypeScript. interface Employee{ id: number; name: string; salary: number; } I would like to make salary …

typescript nullable
nullable object must have a value

There is paradox in the exception description: Nullable object must have a value (?!) This is the problem: I have a …

c# nullable invalidoperationexception
How to set enum to null

I have an enum string name; public enum Color { Red, Green, Yellow } How to set it to NULL on load. …

c# enums null nullable
How to set null value to int in c#?

int value=0; if (value == 0) { value = null; } How can I set value to null above? Any help will be appreciated.

c# .net null int nullable
Laravel Migration Change to Make a Column Nullable

I created a migration with unsigned user_id. How can I edit user_id in a new migration to also …

laravel laravel-5 eloquent nullable laravel-migrations
Java check if boolean is null

How do you check if a boolean is null or not? So if I know "hideInNav" is null. How do …

java performance boolean nullable
How to parse a string into a nullable int

I'm wanting to parse a string into a nullable int in C#. ie. I want to get back either the …

c# .net string .net-3.5 nullable
How can I format a nullable DateTime with ToString()?

How can I convert the nullable DateTime dt2 to a formatted string? DateTime dt = DateTime.Now; Console.WriteLine(dt.ToString("…

c# datetime formatting nullable
How to use @Nullable and @Nonnull annotations more effectively?

I can see that @Nullable and @Nonnull annotations could be helpful in preventing NullPointerExceptions but they do not propagate very …

java annotations nullpointerexception nullable code-standards