Top "Nullable" questions

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

Varchar columns: Nullable or not

The database development standards in our organization state the varchar fields should not allow null values. They should have a …

sql-server null types nullable sqldatatypes
How to make Object property of a C# class optional?

I am trying to make a model class in C# in which i require object/List properties as optional property: …

c# .net nullable non-nullable
How do I safely cast a `_Nullable` to a `_Nonnull` in Objective-C?

When compiling with -Wnullable-to-nonnull-conversion, we get a proper warning with the following code: NSString * _Nullable maybeFoo = @"foo"; ^(NSString * _Nonnull bar) { }(…

ios objective-c xcode nullable objective-c-nullability
Why does >= return false when == returns true for null values?

I have two variables of type int? (or Nullable<int> if you will). I wanted to do a …

c# comparison operators nullable
Why GetType returns System.Int32 instead of Nullable<Int32>?

Why is the output of this snippet System.Int32 instead of Nullable<Int32>? int? x = 5; Console.WriteLine(x.…

c# .net reflection nullable gettype
Trying to understand ?. (null-conditional) operator in C#

I have this very simple example: class Program { class A { public bool B; } static void Main() { System.Collections.ArrayList list = …

c# nullable roslyn c#-6.0 null-conditional-operator
Why can the as operator be used with Nullable<T>?

According to the documentation of the as operator, as "is used to perform certain types of conversions between compatible reference …

c# nullable autoboxing