Premature Disposal
-
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
-
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
Return value should be
FriedMetaData
then :P
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - RĂ¼diger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe -
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
Another shorty, discovered moments after submitting the last, and in the same file.
Console.WriteLine(String.Format("{0}", arg));
Again, the actual example is slightly more complex, but I'd guess that there's a redundant call in there somewhere ;) -
Another shorty, discovered moments after submitting the last, and in the same file.
Console.WriteLine(String.Format("{0}", arg));
Again, the actual example is slightly more complex, but I'd guess that there's a redundant call in there somewhere ;)Huh... not
arg.ToString()
? -
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
I first read that as FeedMeData... :~
-
I first read that as FeedMeData... :~
Thank God I wasn't the only one!
-
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
Just like dangling pointers in C or C++ :)
-
I'm a great fan of shorties. I'll have to miss most of the source for the usual reasons, but the last two lines made me do a double-take... (within class FeedMetaData, C#)
virtual FeedMetaData Send(FeedValidationErrorHandler handler) { // ... this.Dispose(); return this; }
Is that like Premature Eja....?
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
-
Huh... not
arg.ToString()
?uh, no, it should be Console.WriteLine("{0}", arg); (The string.format("{0}", arg) is superflous. The reason to use the format specifier is that arg may itself contain formatting directives such as {0}.
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay