Top "Nullable" questions

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

Linq query with nullable sum

from i in Db.Items select new VotedItem { ItemId = i.ItemId, Points = (from v in Db.Votes where b.ItemId == …

c# linq linq-to-sql sum nullable
Should Java 8 getters return optional type?

Optional type introduced in Java 8 is a new thing for many developers. Is a getter method returning Optional<Foo&…

java java-8 nullable optional
Deserializing empty xml attribute value into nullable int property using XmlSerializer

I get an xml from the 3rd party and I need to deserialize it into C# object. This xml may …

.net xml serialization nullable
How does @RequestParam in Spring handle Guava's Optional?

@RequestMapping(value = "/contact.html", method = RequestMethod.POST) public final ModelAndView contact( @RequestParam(value = "name", required = false) Optional<String> …

spring spring-mvc guava nullable optional
In Kotlin, what is the idiomatic way to deal with nullable values, referencing or converting them

If I have a nullable type Xyz?, I want to reference it or convert it to a non-nullable type Xyz. …

nullable kotlin non-nullable
Make a column nullable in DB2 when Data Capture is enabled

I'm using db2 version 9.7* and it seems impossible to make a NOT NULL column nullable in any straightforward way. Unfortunately …

db2 nullable alter non-nullable notnull
Nullable type issue with ?: Conditional Operator

Could someone explain why this works in C#.NET 2.0: Nullable<DateTime> foo; if (true) foo = null; else foo = …

c# generics nullable conditional-operator
Convert String to Nullable DateTime

Possible Duplicate: How do I use DateTime.TryParse with a Nullable<DateTime>? I have this line of code …

c# datetime nullable
How to make a view column NOT NULL

I'm trying to create a view where I want a column to be only true or false. However, it seems …

sql sql-server-2008 nullable sql-view
C# generic type constraint for everything nullable

So I have this class: public class Foo<T> where T : ??? { private T item; public bool IsNull() { return …

c# generics nullable