IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
StephenB
Stephen Berry
-Collapse +Expand Profile
Member Info
Member Narration

POSTS:
KB Posts (11)

KBPOSTSBYTYPE:
Tech Articles
Definitions Page◄╣
Code Snippets (3)

Search StephenB:

Advanced

   ► KBProfile: StephenB  Print This    Computer Dictionary  
Stephen Berry

Stephen Berry's Definitions Library

3 Definitions (terms, vocabulary, acronyms, etc.).

These Definitions are organized by our community groups then by our knowledge base sub-topics.

Group: C# (Visual C# & VS.Net)


Topic: Language Basics

#1. C# Null-Coalescing Operator: ?? -

The null-coalescing operatior ?? is used to assign a default value for nullable value types or reference types. This operator prevents exceptions from being thrown when trying to assign a nullable type to a non-nullable type.

For example, this code will throw an exception.

int? x = null;
int y = x;

However, this code will assign the default value of -1 to y:

int? x = null;
int y = x ?? -1;

#2. Nullable Type - Nullable types are instances of System.Nullable(T). A Nullable type can represent any of the normal values for its value type or it can be assigned the value null. This is useful when dealing with databases that may have types that do not have a value.



Group: Coding & OO





Topic: General Coding Concepts

#3. Stack - A queue-like data structure which supports the last in, first out functionality.
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]