|
Let's just hope you never have two threads trying to use that class at the same time.
And that you never need to call two methods that use it (or one method in a loop) and use the return value of both in the calling method.
And don't even think about using it in ASP.NET!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: And don't even think about using it in ASP.NET!
Everything you listed can be easily addressed, except ASP.NET. Nothing can fix that, because it's a web technology.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Angular 2 seems set to fix it, based on my recent self-tuition in that framework and the TypeScript language, which it is written in.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
Seems a bit of overkill when you could just return List<object>. But hey that's just me.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
A typed list, how pretensious, even if the type is object . In my appy days we used ArrayList .
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
LOL. Yessss, yessss, My Pretentious....
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Users of List<object> will pay a high price for the possible boxing/unboxing, or casting, or object Type inspection, that will occur ... or that will be necessary ... depending on the Types involved. And, the "opacity" of such code, like the current Item1 ... Item# syntax of .NET Tuples will, imho, make future code maintenance difficult.
Isn't this equivalent to using the old 'ArrayList structure ?
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
Just keep in mind that in .Net a Tuple is a reference type (class), not a struct.
|
|
|
|
|
In C# 7, the new Tuple, is a struct.
Do what thou wilt shall be the whole of the Law. - Liber AL vel Legis 1:40, Aleister Crowley
|
|
|
|
|
Well, that opens up fur some confusion.
Why don't they just call them anonymous return types instead?
|
|
|
|
|
Jörgen Andersson wrote: a reference type (class), not a struct. And, that's one reason I have avoided them: [^].
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
Yes, I've read that. But that's a specific case.
If you read here[^] you'll find some performance comparisons.
You quickly realize that if you create, use and throw away, it makes sense to use a value type. But if your types are used more than once or twice before being destroyed, it makes sense to use reference types.
|
|
|
|
|
12334 3556 748 970 (5, 4, 3, 3)
Hint 1: The Doctor's order?
Hint 2: How many times do I have to tell you? I do not like them!
Hint 3: All this puzzling is taking time,
So let's resolve it with a rhyme.
The answer's there if you'll just look
At the cover of a children's book!
|
|
|
|
|
Trees eddy she ask
Edit: actually that guess doesn't fit!
|
|
|
|
|
4b 3w
That's quite a start on the black front!
|
|
|
|
|
Not sure it helps me* much though.
*I still don't have a clue.
|
|
|
|
|
CHEEK EAAR AKS DAN
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
4b 5w
Hint 2 about to be added ...
|
|
|
|
|
Ooh, I know this one...
Brown Eggs And Bacon.
(What? I'm not getting up at 5am to post one of these things)
|
|
|
|
|
This is really tough.
GREEK EGGY UKS PUB
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
7b 1w
At least one person knows this already, so super-giveaway Hint 3 about to be added ...
|
|
|
|
|
GREEN EGGS AND HAM ?!
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
We have a winner!
It was, indeed, Green Eggs and Ham - an epic poem by the great Dr. Seuss in which the unnamed protagonist repeatedly refuses Sam-I-Am's offers of a dish of green eggs and ham in the firm conviction that the dish is not to his taste. SPOILER ALERT - needless to say, said unnamed protagonist eventually concedes and gives it a go, only to find that he actually does like green eggs and ham after all.
The hints were
1) The Doctor's order? What Doctor Seuss might have ordered in a restaurant.
2) I do not like them ... From the books's refrain - "I do not like green eggs and ham, I do not like them Sam-I-am!"
3) A Seuss-like rhyme pointing directly to the literary classic in question.
|
|
|
|
|
Wow nice, without the previous unofficial hinty no 3 i would not have gotten it
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
It's a UK public holiday, and the original CCC wasn't posted on those: do we want to ignore holidays, or skip it for Tuesday? I have no idea how many other countries have a holiday then...
If you want one, reply YES, if not, reply Foooshoootnochanceiwontbetheretoanserit
If you don't know what I mean, quote James Joyce's Finnegans Wake - but exclude any quotes that contain no punctuation, and only quote from chapters you have read in their entirety.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|