c# Programming Glossary: fragile
Refactoring code to avoid anti-pattern http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern is tightly coupled to too many things making it rigid and fragile. It could change and possibly break for too many reasons. So..
Int32.TryParse() or (int?)command.ExecuteScalar() http://stackoverflow.com/questions/1174930/int32-tryparse-or-intcommand-executescalar param than doing the execute scalar execute scalar feels fragile the convention that the first column in the first row is a return..
How to test method call order with Moq http://stackoverflow.com/questions/1765738/how-to-test-method-call-order-with-moq tests though. I generally feel that testing order leads to fragile tests as it's often testing implementation details. EDIT I'm..
Using lock statement within a loop in C# http://stackoverflow.com/questions/2113261/using-lock-statement-within-a-loop-in-c-sharp old way effectively hides bugs and makes it easy to write fragile applications. Suppose you do handle the exception. Now what..
How to monitor clipboard content changes in C#? [duplicate] http://stackoverflow.com/questions/2226920/how-to-monitor-clipboard-content-changes-in-c John Knoeller's answer for XP have to use the older more fragile SetClipboardViewer API as in the accepted answer. c# .net clipboard..
Workaround for HttpContext.HideRequestResponse being internal? Detect if HttpContext.Request is really available? http://stackoverflow.com/questions/2609512/workaround-for-httpcontext-hiderequestresponse-being-internal-detect-if-httpcon so I can only get to it with reflection and that's fragile. Is there a more official approved way to determine if it's..
How to delay static initialization within a property http://stackoverflow.com/questions/3065952/how-to-delay-static-initialization-within-a-property field inadvertently. Yet it looks terribly fragile. Also strictly speaking the beforefieldinit subtleties you're..
How can I get the values of the parameters of a calling method? http://stackoverflow.com/questions/492600/how-can-i-get-the-values-of-the-parameters-of-a-calling-method do it without introspecting the stack yourself and this is fragile since many optimizations may mean the stack frame is not what..
How to avoid System.IO.PathTooLongException? http://stackoverflow.com/questions/530109/how-to-avoid-system-io-pathtoolongexception
Byte for byte serialization of a struct in C# http://stackoverflow.com/questions/628843/byte-for-byte-serialization-of-a-struct-in-c-sharp in mind. Personally I regard this as being a pretty fragile way to serialize deserialize. If anything changes your data..
HTML - How do I know when all frames are loaded? http://stackoverflow.com/questions/672731/html-how-do-i-know-when-all-frames-are-loaded Frames HtmlWindow.Load events. Your solution will be fragile if working at all. don't use System.Timers.Timer instead of..
Cast an Anonymous Types in Object and retrieve one Field http://stackoverflow.com/questions/6901506/cast-an-anonymous-types-in-object-and-retrieve-one-field but there is a horrible way you can do this. It's somewhat fragile as it relies on you specifying the anonymous type in exactly..
Writing large number of records (bulk insert) to Access in .NET/C# http://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c 2.8 seconds and tied for first place. But I consider this fragile for a number of reasons Outputing date fields is tricky. I had.. no need for an import specification. Text files are also fragile for internationalization where there is a use of comma's for..
Retrieve an object from entityframework without ONE field http://stackoverflow.com/questions/8973529/retrieve-an-object-from-entityframework-without-one-field column from SSDL as well which will make your model very fragile each update from database will put your column back . If you..
OData with ServiceStack? http://stackoverflow.com/questions/9577938/odata-with-servicestack article on why generic based APIs like OData are much more fragile complex and harder to use than equivalent intent based APIs..
Setting up Hook on Windows messages http://stackoverflow.com/questions/9665579/setting-up-hook-on-windows-messages from that thread. Note also that this is something of a fragile approach if Spotify changes how it displays the text or changes..
Simplify Overriding Equals(), GetHashCode() in C# for Better Maintainability http://stackoverflow.com/questions/9707918/simplify-overriding-equals-gethashcode-in-c-sharp-for-better-maintainabilit equal. That leads to code that is repetitive to write and fragile to maintain property gets added and one both of the overrides..
|