Click here to Skip to main content
14,448,728 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 11:20
mvahoney the codewitch26-Nov-19 11:20 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch26-Nov-19 11:19
mvahoney the codewitch26-Nov-19 11:19 
GeneralRe: all these C#8 language feature additions and yet Pin
#realJSOP25-Nov-19 1:57
mva#realJSOP25-Nov-19 1:57 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch25-Nov-19 2:00
mvahoney the codewitch25-Nov-19 2:00 
GeneralRe: all these C#8 language feature additions and yet Pin
#realJSOP25-Nov-19 2:07
mva#realJSOP25-Nov-19 2:07 
GeneralRe: all these C#8 language feature additions and yet Pin
honey the codewitch25-Nov-19 2:10
mvahoney the codewitch25-Nov-19 2:10 
GeneralRe: all these C#8 language feature additions and yet Pin
Marc Clifton25-Nov-19 3:43
communityengineerMarc Clifton25-Nov-19 3:43 
GeneralRe: all these C#8 language feature additions and yet Pin
Richard Deeming26-Nov-19 10:49
communityengineerRichard Deeming26-Nov-19 10:49 
If you're using .NET Core:
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:
#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 10:50
mvahoney the codewitch26-Nov-19 10:50 
GeneralRandom numbers Pin
Jörgen Andersson24-Nov-19 12:41
communityengineerJörgen Andersson24-Nov-19 12:41 
GeneralRe: Random numbers Pin
honey the codewitch24-Nov-19 13:01
mvahoney the codewitch24-Nov-19 13:01 
GeneralRe: Random numbers Pin
Jörgen Andersson24-Nov-19 13:11
communityengineerJörgen Andersson24-Nov-19 13:11 
GeneralRe: Random numbers Pin
honey the codewitch24-Nov-19 13:12
mvahoney the codewitch24-Nov-19 13:12 
GeneralRe: Random numbers Pin
Jörgen Andersson25-Nov-19 0:52
communityengineerJörgen Andersson25-Nov-19 0:52 
GeneralRe: Random numbers Pin
Rick York24-Nov-19 15:08
mveRick York24-Nov-19 15:08 
GeneralRe: Random numbers Pin
Jörgen Andersson25-Nov-19 1:09
communityengineerJörgen Andersson25-Nov-19 1:09 
GeneralRe: Random numbers Pin
Randor 24-Nov-19 16:54
professional Randor 24-Nov-19 16:54 
GeneralRe: Random numbers Pin
maze324-Nov-19 23:37
professionalmaze324-Nov-19 23:37 
GeneralRe: Random numbers Pin
Amarnath S25-Nov-19 0:25
professionalAmarnath S25-Nov-19 0:25 
GeneralRe: Random numbers Pin
Jörgen Andersson25-Nov-19 0:51
communityengineerJörgen Andersson25-Nov-19 0:51 
GeneralRe: Random numbers Pin
DerekT-P25-Nov-19 0:42
professionalDerekT-P25-Nov-19 0:42 
GeneralRe: Random numbers Pin
carlospc197025-Nov-19 4:42
professionalcarlospc197025-Nov-19 4:42 
GeneralRe: Random numbers Pin
k505425-Nov-19 5:28
Memberk505425-Nov-19 5:28 
GeneralI have an Android CI-Docker problem Pin
Abbas A. Ali24-Nov-19 10:24
professionalAbbas A. Ali24-Nov-19 10:24 
GeneralRe: I have an Android CI-Docker problem Pin
RickZeeland24-Nov-19 10:53
communityengineerRickZeeland24-Nov-19 10: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.