DotNetShoutout - Stories tagged with nullables
3
Shouts

Advanced Dotnet Tutorial: Notion of System.Nullable - A Look

posted by learndotnet123learndotnet123 973 days, 18 hours, 3 minutes ago
Monday, September 20, 2010 6:27:35 AM GMT
C# has lots of flexibilities and hooks to turn around things that was impossible for other languages. One of such thing is the introduction of Nullable Types. Here is a discussion of how you could use Nullable to make sure your code works well for null values in Value Types. Why System.Nullable?System.Nullable is the only structure that supports the storage of Null as a valid range of values. Generally in case of structures it cannot store null values in it. Say for instance : Int32 is a structure. ... (more)
category: Web Dev | clicked: 1 | comment | | source: advanceddotnettutorial.blogspot.com
tags: C#, nullables
3
Shouts

C# Null – Which types can accept null?

published 1105 days, 14 hours, 56 minutes ago posted by http://daniewat82.myopenid.com/http://daniewat82.myopenid.com/ 1106 days, 4 hours, 48 minutes ago
Tuesday, May 11, 2010 9:34:41 AM GMT Monday, May 10, 2010 7:42:15 PM GMT
A few days ago someone asked me which types can accept null and also how could this be determined at runtime. After a quick Google and some chit chat we found that only if the variables type is not a value type or the variables type has a generic type definition of Nullable<> can the variable accept null . This is really helpful to know when you are dynamically invoking methods at runtime and you are not sure if the methods parameters will accept the passed in values. (more)
category: Web Dev | clicked: 0 | comment | | source: www.dotnetguy.co.uk
tags: C#, nullables
2
Shouts

How to check JQuery object is null

posted by PraveenPraveen 1209 days, 3 hours, 17 minutes ago
Wednesday, January 27, 2010 9:13:37 PM GMT
This is simple and no need to write post for it. You may feel same right? But, this is the question I received from almost 10 people till now. So, I thought of writing a post on it. So that, it may help people who are looking for the same through out the world. By default JQuery returns object when you declare $("$id") or $(".class"). If you write code for it as below, then that's wrong.if($("#id") != null) { //Write code if the object is not null } if($(".class") != null) { //Write code if the object ... (more)
category: Web Dev | clicked: 0 | comment | | source: praveenbattula.blogspot.com
tags: nullables, jQuery
9
Shouts

Why You Should Use the Null Coalescing Operator

published 1246 days, 10 hours, 44 minutes ago posted by KodefuGuruKodefuGuru 1247 days, 16 hours, 37 minutes ago
Monday, December 21, 2009 1:45:49 PM GMT Sunday, December 20, 2009 7:53:16 AM GMT
Introduced in C# 2.0, the null coalescing operator (??) allows one to program in a concise, declarative fashion when performing null checks. This was important in 2005 as it made it easier to utilize another important feature: nullable types. Nullable types solved the problem of representing a value type that also contained a null value. This representation of value types is common in databases, and oftentimes caused problems when doing relational to object mapping. Nullable types are generic structs t... (more)
category: How To | clicked: 0 | 1 comment | | source: www.kodefuguru.com
tags: Generics, ADO.NET, nullables, Linq