Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
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 
If I had seen this:
C#
private List<DateTime> _someList = null;

public List<DateTime> SomeList
{
    get
    {
        _someList = _someList ?? new List<DateTime>();
        return _someList;
    }
}
My brain might not have missed your train.
«While I complain of being able to see only a shadow of the past, I may be insensitive to reality as it is now, since I'm not at a stage of development where I'm capable of seeing it. A few hundred years later another traveler despairing as myself, may mourn the disappearance of what I may have seen, but failed to see.» Claude Levi-Strauss (Tristes Tropiques, 1955)

GeneralRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd21-Oct-17 1:21
Super Lloyd21-Oct-17 1:21 
QuestionRe: Subjective question: which one of these Lazy Init is best Pin
Super Lloyd20-Oct-17 21:10
Super Lloyd20-Oct-17 21:10 
AnswerRe: Subjective question: which one of these Lazy Init is best Pin
Sascha Lefèvre21-Oct-17 2:54
professionalSascha Lefèvre21-Oct-17 2:54 
GeneralRe: Subjective question: which one of these Lazy Init is best Pin
BillWoodruff22-Oct-17 6:08
professionalBillWoodruff22-Oct-17 6:08 
QuestionAttributes on fields in a DataTable/DataRow Pin
hpjchobbes18-Oct-17 10:27
hpjchobbes18-Oct-17 10:27 
AnswerRe: Attributes on fields in a DataTable/DataRow Pin
Gerry Schmitz18-Oct-17 18:08
mveGerry Schmitz18-Oct-17 18:08 
QuestionHow to reverse an array without using Array.Reverse()? Pin
Mubi Ace17-Oct-17 4:58
Mubi Ace17-Oct-17 4:58 
AnswerRe: How to reverse an array without using Array.Reverse()? Pin
Eddy Vluggen17-Oct-17 5:22
professionalEddy Vluggen17-Oct-17 5:22 
GeneralRe: How to reverse an array without using Array.Reverse()? Pin
Richard Deeming17-Oct-17 9:08
mveRichard Deeming17-Oct-17 9:08 

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.