c# Programming Glossary: wouldn't
Why is there not a ForEach extension method on the IEnumerable interface? http://stackoverflow.com/questions/101265/why-is-there-not-a-foreach-extension-method-on-the-ienumerable-interface here and I can see why people are missing the function. I wouldn't mind Microsoft adding a standard ForEach method in the next..
How to dynamically create generic C# object using reflection? http://stackoverflow.com/questions/1151464/how-to-dynamically-create-generic-c-sharp-object-using-reflection using C# reflection Activator.CreateInstance . However I wouldn't know the type before hand so I need to dynamically create TaskA..
Enum type constraints in C# [duplicate] http://stackoverflow.com/questions/1331739/enum-type-constraints-in-c-sharp do limited budgets and this one has never made it past the wouldn't this be nice discussion in the language design team. The CLR..
Complex UI inside ListBoxItem http://stackoverflow.com/questions/15532639/complex-ui-inside-listboxitem that if I later wanted to completely redefine the View I wouldn't have to refactor the entire application 2 Does winforms support.. that if I later wanted to completely redefine the View I wouldn't have to refactor the entire application In the past I've used..
How to add a Blend Behavior in a Style Setter http://stackoverflow.com/questions/1647815/how-to-add-a-blend-behavior-in-a-style-setter to prevent us from even trying to do this knowing that it wouldn't work. The first problem is that we cannot even construct a behavior..
Simple 2 way encryption for C# http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp use different values in the Key and Vector arrays You wouldn't want someone to figure out your keys by just assuming that you..
Why .NET String is immutable? [duplicate] http://stackoverflow.com/questions/2365272/why-net-string-is-immutable doing updates and using different objects may be natural I wouldn't make an object immutable and then force that pattern but if..
Is it better to create a singleton to access unity container or pass it through the application? http://stackoverflow.com/questions/2386487/is-it-better-to-create-a-singleton-to-access-unity-container-or-pass-it-through
How do I intercept a method call in C#? http://stackoverflow.com/questions/25803/how-do-i-intercept-a-method-call-in-c use the Reflection.Emit method as I think Reflection.Emit wouldn't allow you to insert new code inside an already existing method..
What does the @ symbol before a variable name mean in C#? [duplicate] http://stackoverflow.com/questions/429529/what-does-the-symbol-before-a-variable-name-mean-in-c
Show Console in Windows Application? http://stackoverflow.com/questions/472282/show-console-in-windows-application the work. Thus unless some special case called for it I wouldn't use this code myself because as soon as I run into situations..
How might I schedule a C# Windows Service to perform a task daily? http://stackoverflow.com/questions/503564/how-might-i-schedule-a-c-sharp-windows-service-to-perform-a-task-daily scheduled tasks share improve this question I wouldn't use Thread.Sleep . Either use a scheduled task as others have..
When to use struct in C#? http://stackoverflow.com/questions/521298/when-to-use-struct-in-c source got 3 out of 4 quite forgivable since #4 probably wouldn't be an issue. If you find yourself boxing a struct rethink your..
Very slow compile times on Visual Studio 2005 http://stackoverflow.com/questions/55517/very-slow-compile-times-on-visual-studio-2005 as would appear in live system so that may accumulate. I wouldn't avoid using generics where they are supposed to be used just..
Developing Internet Explorer Extensions? http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions Explorer extension in C#. I went into it thinking it wouldn't be too bad. Wow. I was really wrong. So my question is does..
Calling null on a class vs Dispose() http://stackoverflow.com/questions/574019/calling-null-on-a-class-vs-dispose We're not going to need it again but the JIT wouldn't spot that foo null else Some other code Implementing IDisposable..
Interface defining a constructor signature? http://stackoverflow.com/questions/619856/interface-defining-a-constructor-signature question You can't. It's occasionally a pain but you wouldn't be able to call it using normal techniques anyway. In a blog..
Replacing .NET WebBrowser control with a better browser, like Chrome? http://stackoverflow.com/questions/790542/replacing-net-webbrowser-control-with-a-better-browser-like-chrome the WebBrowser control is a wrapper for IE which wouldn't be a problem except that it looks like it is a very old version..
Data binding dynamic data http://stackoverflow.com/questions/882214/data-binding-dynamic-data done very occasionally. I'm fairly familiar with it but I wouldn't do it just for laughs... Here's a very very simplified implementation..
GC.Collect() http://stackoverflow.com/questions/1149197/gc-collect idle possible for another hour or maybe just 1 minute. Wouldn't just after that whole ended a good situation to call GC.Collect..
Passing a generic collection of objects to a method that requires a collection of the base type http://stackoverflow.com/questions/1174328/passing-a-generic-collection-of-objects-to-a-method-that-requires-a-collection-o pass it a collection of a derived type the code wont build Wouldn't all instances of DerivedClass also be a BaseClass I could have..
Creating custom forms in WPF? http://stackoverflow.com/questions/1469727/creating-custom-forms-in-wpf and go from there but that seems to much like WinForms. Wouldn't it be better to just create a class that derived from Window..
How to include help '?' in title bar of winform http://stackoverflow.com/questions/1474663/how-to-include-help-in-title-bar-of-winform Are you sure you want to depart from the Windows standard Wouldn't it be better to have Help available in the menu or on a toolbar..
Using StringWriter for XML Serialization http://stackoverflow.com/questions/1564718/using-stringwriter-for-xml-serialization I'm not sure that I have to use utf 16 to write to the DB. Wouldn't setting the encoding to UTF 16 in the xml tag work then c#..
Need microsecond delay in .NET app for throttling UDP multicast transmission rate http://stackoverflow.com/questions/1631501/need-microsecond-delay-in-net-app-for-throttling-udp-multicast-transmission-rat time but I'd like to avoid that as it feels kludgey. Wouldn't that also peg the CPU utilization for the server process Bonus..
Why can't C# interfaces contain fields? http://stackoverflow.com/questions/2115114/why-cant-c-sharp-interfaces-contain-fields that every implementation has to separately declare Year Wouldn't it be nicer to simply define this in the interface c# share..
C# 4: Real-World Example of Dynamic Types http://stackoverflow.com/questions/2255982/c-sharp-4-real-world-example-of-dynamic-types a string to InvokeMember or whatever the thing is called . Wouldn't it be nicer to you know just invoke the damn thing Then there..
Are global static classes and methods bad? http://stackoverflow.com/questions/3151768/are-global-static-classes-and-methods-bad that relying heavily on global stuff is to be avoided. Wouldn't using static classes and methods be the same thing c# .net..
Why does List<T> implement IList<T>, ICollection<T> and IEnumerable<T>? http://stackoverflow.com/questions/3224081/why-does-listt-implement-ilistt-icollectiont-and-ienumerablet inherits from both ICollection T and IEnumerable T . Wouldn't it have been sufficient if List T only implemented IList T ..
Pipe forwards in C# http://stackoverflow.com/questions/336775/pipe-forwards-in-c-sharp those transitions return null pixiesDrummer will be null. Wouldn't it be great if we could do extension methods that are operator..
Multi-threaded splash screen in C#? http://stackoverflow.com/questions/48916/multi-threaded-splash-screen-in-c is the living form should the splash come from there Wouldn't it not load until the form is completed anyway I'm not looking..
Why does Boolean.ToString output “True” and not “true” http://stackoverflow.com/questions/491334/why-does-boolean-tostring-output-true-and-not-true at all. It uses hardcoded literals True and False . Wouldn't do you any good if it used the fields because they're marked..
Why call dispose(false) in the destructor? http://stackoverflow.com/questions/628752/why-call-disposefalse-in-the-destructor nothing so why would anyone write code like this Wouldn't it make sense to just not call dispose from the destructor at..
Trying to understand exceptions in C# http://stackoverflow.com/questions/7238402/trying-to-understand-exceptions-in-c-sharp reading the file display the error message and return. Wouldn't that always be the case I can understand not wanting to handle..
|