Click here to Skip to main content
15,918,808 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch26-Nov-19 10:20
mvahoney the codewitch26-Nov-19 10:20 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch26-Nov-19 10:19
mvahoney the codewitch26-Nov-19 10:19 
GeneralRe: all these C#8 language feature additions and yet Pin
#realJSOP25-Nov-19 0:57
professional#realJSOP25-Nov-19 0:57 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch25-Nov-19 1:00
mvahoney the codewitch25-Nov-19 1:00 
GeneralRe: all these C#8 language feature additions and yet Pin
#realJSOP25-Nov-19 1:07
professional#realJSOP25-Nov-19 1:07 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch25-Nov-19 1:10
mvahoney the codewitch25-Nov-19 1:10 
GeneralRe: all these C#8 language feature additions and yet Pin
Marc Clifton25-Nov-19 2:43
mvaMarc Clifton25-Nov-19 2:43 
GeneralRe: all these C#8 language feature additions and yet Pin
Richard Deeming26-Nov-19 9:49
mveRichard Deeming26-Nov-19 9:49 
If you're using .NET Core:
C#
dt = KeyValuePair.Create(KeyValuePair.Create(dt.Key.Key, dt.Key.Value), tt[dt.Key]);
KeyValuePair.Create<TKey,TValue>(TKey, TValue) Method (System.Collections.Generic) | Microsoft Docs[^]

If you're using .NET Framework, it's simple enough to provide your own version of this method:
C#
#if NETFRAMEWORK

using System;

namespace System.Collections.Generic;
{
    public static class KeyValuePair
    {
        public static KeyValuePair<TKey, TValue> Create<TKey, TValue>(TKey key, TValue value) 
            => new KeyValuePair<TKey, TValue>(key, value);
    }
}

#endif




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch26-Nov-19 9:50
mvahoney the codewitch26-Nov-19 9:50 
GeneralRandom numbers PinPopular
Jörgen Andersson24-Nov-19 11:41
professionalJörgen Andersson24-Nov-19 11:41 
GeneralRe: Random numbers Pin
honey the codewitch24-Nov-19 12:01
mvahoney the codewitch24-Nov-19 12:01 
GeneralRe: Random numbers Pin
Jörgen Andersson24-Nov-19 12:11
professionalJörgen Andersson24-Nov-19 12:11 
GeneralRe: Random numbers Pin
honey the codewitch24-Nov-19 12:12
mvahoney the codewitch24-Nov-19 12:12 
GeneralRe: Random numbers Pin
Jörgen Andersson24-Nov-19 23:52
professionalJörgen Andersson24-Nov-19 23:52 
GeneralRe: Random numbers Pin
Rick York24-Nov-19 14:08
mveRick York24-Nov-19 14:08 
GeneralRe: Random numbers Pin
Jörgen Andersson25-Nov-19 0:09
professionalJörgen Andersson25-Nov-19 0:09 
GeneralRe: Random numbers Pin
Randor 24-Nov-19 15:54
professional Randor 24-Nov-19 15:54 
GeneralRe: Random numbers Pin
maze324-Nov-19 22:37
professionalmaze324-Nov-19 22:37 
GeneralRe: Random numbers Pin
Amarnath S24-Nov-19 23:25
professionalAmarnath S24-Nov-19 23:25 
GeneralRe: Random numbers Pin
Jörgen Andersson24-Nov-19 23:51
professionalJörgen Andersson24-Nov-19 23:51 
GeneralRe: Random numbers Pin
DerekT-P24-Nov-19 23:42
professionalDerekT-P24-Nov-19 23:42 
GeneralRe: Random numbers Pin
carlospc197025-Nov-19 3:42
professionalcarlospc197025-Nov-19 3:42 
GeneralRe: Random numbers Pin
k505425-Nov-19 4:28
mvek505425-Nov-19 4:28 
GeneralI have an Android CI-Docker problem Pin
Abbas A. Ali24-Nov-19 9:24
professionalAbbas A. Ali24-Nov-19 9:24 
GeneralRe: I have an Android CI-Docker problem Pin
RickZeeland24-Nov-19 9:53
mveRickZeeland24-Nov-19 9:53 

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.