3 ms·
I don't understand this: > int? length = customers?.Length; // null if customers is null Surely, a primitive int cannot be null (at least in Java).
by _pmf_ 12y ago
I don't understand this:
> int? length = customers?.Length; // null if customers is null
Surely, a primitive int cannot be null (at least in Java).
- kbd 12y agoThe 'int? length' declares length as a nullable int. http://msdn.microsoft.com/en-us/library/1t3y8s4s.aspx http://msdn.microsoft.com/en-us/library/1t3y8s4s.aspx
- _pmf_ 12y ago> The 'int? length' declares length as a nullable int. Thanks; this shows how rusty my C# skills have become.
- CmonDev 12y agoDon't blame yourself, blame Java.
- Glide 12y agoI haven't touched Java since school yet it feels like nothing major has changed in terms of writing code (outside of tools of course). I haven't coded in C# for 2 years and I feel like I need some time to catch up. Seeing the difference between the languages makes me feel like people who only do Java are going to be hopelessly left behind.
- kbd 12y ago> Thanks; this shows how rusty my C# skills have become. C# has improved fairly rapidly. I haven't done it professionally in some time now and I feel like I don't have a good handle on the full language anymore. I'm somewhat concerned the language is getting too "big", but I'm not sure it's at that point yet. They keep adding solid features.