Click here to Skip to main content
15,118,573 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsIFTTT debuts paid Pro subscription service for Applet creation Pin
Kent Sharkey10-Sep-20 11:15
staffKent Sharkey10-Sep-20 11:15 
NewsAccess Linux filesystems in Windows and WSL 2 Pin
Kent Sharkey10-Sep-20 9:00
staffKent Sharkey10-Sep-20 9:00 
GeneralRe: Access Linux filesystems in Windows and WSL 2 Pin
Nelek10-Sep-20 9:57
protectorNelek10-Sep-20 9:57 
NewsApple design teams develop special face masks for employees Pin
Kent Sharkey10-Sep-20 9:00
staffKent Sharkey10-Sep-20 9:00 
GeneralRe: Apple design teams develop special face masks for employees Pin
Joe Woodbury10-Sep-20 13:30
professionalJoe Woodbury10-Sep-20 13:30 
GeneralRe: Apple design teams develop special face masks for employees Pin
Vivi Chellappa11-Sep-20 11:13
professionalVivi Chellappa11-Sep-20 11:13 
NewsC# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
Kent Sharkey10-Sep-20 8:00
staffKent Sharkey10-Sep-20 8:00 
GeneralRe: C# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
BillWoodruff10-Sep-20 21:20
mveBillWoodruff10-Sep-20 21:20 
Quote:
When reading the code, you need to look at the types of the properties AddFriendCommand and Friends to know what the two new expressions in the code snippet above are actually creating. But that’s only true if you do not read the code in a tool like Visual Studio, but in a simple text editor or on a blog like this one. If you look at the code in Visual Studio, you can hover any target-typed new expression with your mouse to see which constructor it calls. In the screenshot below I hovered the second new expression in Visual Studio and you can see in the tooltip that it actually creates an ObservableCollection<friend>.
Huber is a good writer.

Type inference on the left (var) now joins inference on the right (new(#####)): I feel dyslexic !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralRe: C# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
Dan Neely11-Sep-20 3:24
MemberDan Neely11-Sep-20 3:24 
GeneralRe: C# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
Rob Grainger14-Sep-20 23:59
MemberRob Grainger14-Sep-20 23:59 
GeneralRe: C# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
Richard Andrew x6411-Sep-20 8:25
professionalRichard Andrew x6411-Sep-20 8:25 
GeneralRe: C# 9.0: Target-typed new expressions – Make your initialization code less verbose Pin
Dominic Burford14-Sep-20 3:45
professionalDominic Burford14-Sep-20 3:45 
NewsWindows 10 2004 KB4571756 breaks Windows Subsystem for Linux 2 Pin
Kent Sharkey10-Sep-20 8:00
staffKent Sharkey10-Sep-20 8:00 
GeneralRe: Windows 10 2004 KB4571756 breaks Windows Subsystem for Linux 2 Pin
Nelek10-Sep-20 9:53
protectorNelek10-Sep-20 9:53 
NewsNASA says it will pay private companies to gather Moon rocks Pin
Kent Sharkey10-Sep-20 8:00
staffKent Sharkey10-Sep-20 8:00 
GeneralRe: NASA says it will pay private companies to gather Moon rocks Pin
Nelek10-Sep-20 9:51
protectorNelek10-Sep-20 9:51 
NewsVivaldi 3.3 can pause the web with new 'Take a Break' feature Pin
Kent Sharkey9-Sep-20 12:45
staffKent Sharkey9-Sep-20 12:45 
GeneralRe: Vivaldi 3.3 can pause the web with new 'Take a Break' feature Pin
Nelek10-Sep-20 9:49
protectorNelek10-Sep-20 9:49 
GeneralRe: Vivaldi 3.3 can pause the web with new 'Take a Break' feature Pin
r_hyde10-Sep-20 11:26
Memberr_hyde10-Sep-20 11:26 
GeneralRe: Vivaldi 3.3 can pause the web with new 'Take a Break' feature Pin
Kent Sharkey10-Sep-20 11:44
staffKent Sharkey10-Sep-20 11:44 
GeneralRe: Vivaldi 3.3 can pause the web with new 'Take a Break' feature Pin
Joe Woodbury10-Sep-20 13:28
professionalJoe Woodbury10-Sep-20 13:28 
NewsMicrosoft's Fluid Framework is now open source on GitHub Pin
Kent Sharkey9-Sep-20 12:45
staffKent Sharkey9-Sep-20 12:45 
NewsPhysicist: The entire universe might be a neural network Pin
Kent Sharkey9-Sep-20 11:45
staffKent Sharkey9-Sep-20 11:45 
GeneralRe: Physicist: The entire universe might be a neural network Pin
Patrice T10-Sep-20 2:01
mvePatrice T10-Sep-20 2:01 
GeneralRe: Physicist: The entire universe might be a neural network Pin
Nelek10-Sep-20 9:48
protectorNelek10-Sep-20 9:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.