Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
BillWoodruff20-Oct-17 20:21
professionalBillWoodruff20-Oct-17 20:21 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Bernhard Hiller23-Oct-17 22:16
Bernhard Hiller23-Oct-17 22:16 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen19-Oct-17 22:39
professionalEddy Vluggen19-Oct-17 22:39 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
Richard Deeming20-Oct-17 1:53
mveRichard Deeming20-Oct-17 1:53 
SuggestionRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen20-Oct-17 2:04
professionalEddy Vluggen20-Oct-17 2:04 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Richard Deeming20-Oct-17 2:12
mveRichard Deeming20-Oct-17 2:12 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen20-Oct-17 4:31
professionalEddy Vluggen20-Oct-17 4:31 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Richard Deeming20-Oct-17 4:43
mveRichard Deeming20-Oct-17 4:43 
Yes. That's how a lot of the changes to C# are implemented - the compiler recognises the newer code, and compiles it into something that will run on an older version of the framework.

String interpolation; pattern matching; the enhanced "switch" statement; the null-conditional operator - they all compile to IL that will work on older framework versions.

Some of the changes require additional libraries to work - eg: ValueTuple on < 4.7 and async on 4.0 both need extra NuGet packages, and in some cases, changes to class names.

And some changes require additional changes to the CLR or the BCL. But those tend to be quite rare, because the language team are reluctant to make those kinds of changes.



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


GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen20-Oct-17 6:01
professionalEddy Vluggen20-Oct-17 6:01 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 20:31
Super Lloyd20-Oct-17 20:31 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 20:32
Super Lloyd20-Oct-17 20:32 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
jschell20-Oct-17 9:22
jschell20-Oct-17 9:22 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen20-Oct-17 14:18
professionalEddy Vluggen20-Oct-17 14:18 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
jschell23-Oct-17 6:02
jschell23-Oct-17 6:02 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Eddy Vluggen23-Oct-17 6:25
professionalEddy Vluggen23-Oct-17 6:25 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
jschell25-Oct-17 9:07
jschell25-Oct-17 9:07 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 20:40
Super Lloyd20-Oct-17 20:40 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Bernhard Hiller23-Oct-17 22:28
Bernhard Hiller23-Oct-17 22:28 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd24-Oct-17 1:04
Super Lloyd24-Oct-17 1:04 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Richard Deeming24-Oct-17 1:53
mveRichard Deeming24-Oct-17 1:53 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
BillWoodruff20-Oct-17 18:10
professionalBillWoodruff20-Oct-17 18:10 
QuestionRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 20:52
Super Lloyd20-Oct-17 20:52 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
BillWoodruff20-Oct-17 22:42
professionalBillWoodruff20-Oct-17 22:42 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 23:01
Super Lloyd20-Oct-17 23:01 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
BillWoodruff21-Oct-17 0:44
professionalBillWoodruff21-Oct-17 0:44 

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.