c# Programming Glossary: thinking
How to get difference between two dates in Year/Month/Week/Day? http://stackoverflow.com/questions/1083955/how-to-get-difference-between-two-dates-in-year-month-week-day int daysWithinWeek period.Days 7 I suggest you avoid even thinking about negative periods make sure everything is positive all..
Catch multiple Exceptions at once? http://stackoverflow.com/questions/136035/catch-multiple-exceptions-at-once works catch also catches all derived exceptions. After thinking about it this is really obvious Otherwise catch Exception ex..
switch / pattern matching idea http://stackoverflow.com/questions/156467/switch-pattern-matching-idea library support could make life easier. In particular I'm thinking about the pattern matching capability of F# which allows a very..
Can I show file copy progress using FileInfo.CopyTo() in .NET? http://stackoverflow.com/questions/187768/can-i-show-file-copy-progress-using-fileinfo-copyto-in-net bytes through a stream and track it that way though I'm thinking I might be stuck with going that route . Thanks In Advance PS..
Dependency Inject (DI) “friendly” library http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library to get to the real classes they want to use. My current thinking is to provide a few DI registration modules for the common DI..
Getting the size of a field in bytes with C# http://stackoverflow.com/questions/207592/getting-the-size-of-a-field-in-bytes-with-c-sharp used it to good effect before now. Just yesterday I was thinking it would be a good idea to write a little helper class for this...
Merging dictionaries in C# http://stackoverflow.com/questions/294138/merging-dictionaries-in-c-sharp T1 T2 in C# 3.0 features like LINQ are fine . I'm thinking of a method signature along the lines of public static Dictionary.. Got a cool solution from JaredPar and Jon Skeet but I was thinking of something that handles duplicate keys. In case of collision..
Can't get sql server compact 3.5 / 4 to work with ASP .NET MVC 2 http://stackoverflow.com/questions/3223359/cant-get-sql-server-compact-3-5-4-to-work-with-asp-net-mvc-2 directly from the bin folder for the code. My folly was thinking the Private folder needed to be included but it doesn't. Do..
Sending email in .NET through Gmail http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail Gmail Instead of relying on my host to send email I was thinking of sending the messages though my Gmail account. The emails..
WPF image resources http://stackoverflow.com/questions/347614/wpf-image-resources 20 small icons and images for illustrative purposes. I am thinking about storing these in the assembly as embedded resources. Is..
What is the yield keyword used for in C#? http://stackoverflow.com/questions/39476/what-is-the-yield-keyword-used-for-in-c quite figured out what it actually does. I'm used to thinking of yield in the sense of one thread yielding to another but..
Best way to implement keyboard shortcuts in a Windows Forms application? http://stackoverflow.com/questions/400113/best-way-to-implement-keyboard-shortcuts-in-a-windows-forms-application on the current open child form in the application. I was thinking of using something like this in the ChildForm_KeyDown event..
Import and Export Excel - What is the best library? [closed] http://stackoverflow.com/questions/444522/import-and-export-excel-what-is-the-best-library charts or anything like that just export raw data. I am thinking of flat CSV files but Excel is a customer requirement. I can..
How can I create a Product Key for my C# App http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app trying to come up with ever more complex schemes for this thinking that if they develop their own system for it then it will be..
Show Console in Windows Application? http://stackoverflow.com/questions/472282/show-console-in-windows-application DEMO CODE ONLY In general this approach calls for re thinking your architecture There are 4 possible ways this can run 1 User..
Developing Internet Explorer Extensions? http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions an Internet Explorer extension in C#. I went into it thinking it wouldn't be too bad. Wow. I was really wrong. So my question..
How to elevate privileges only when required? http://stackoverflow.com/questions/573086/how-to-elevate-privileges-only-when-required most of time user wont even be using that feature. I am thinking about certain method by which I can elevate the privileges of..
Is there a faster way to scan through a directory recursively in .NET? http://stackoverflow.com/questions/724148/is-there-a-faster-way-to-scan-through-a-directory-recursively-in-net is quite slow. Is there any way to speed this up I'm thinking of hand coding this with FindFirstFileW but would like to avoid..
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 ... Liberal access to the page code and output. I was thinking about Chrome since it comes under the BSD license but I would..
Nested yield return with IEnumerable http://stackoverflow.com/questions/1270024/nested-yield-return-with-ienumerable in GetMoreErrors without having to enumerate through them Thinking about it this is probably a stupid question but I want to make..
How do C# Events work behind the scenes? http://stackoverflow.com/questions/213638/how-do-c-sharp-events-work-behind-the-scenes OnUserUpdated object sender EventArgs args do something Thinking about this made me realize I don't really understand what's..
Set selected value in SelectList after instantiation http://stackoverflow.com/questions/301854/set-selected-value-in-selectlist-after-instantiation views should be created at the Last Possible Minute LPM . Thinking this way a SelectList is a type to feed the DropDownList HTML..
File IO with Streams - Best Memory Buffer Size http://stackoverflow.com/questions/3033771/file-io-with-streams-best-memory-buffer-size question is What is the best memory buffer size to use Thinking about physical disk layouts I could pick 2k which would cover..
How to work threading with ConcurrentQueue<T> http://stackoverflow.com/questions/4551087/how-to-work-threading-with-concurrentqueuet that I should process each incoming DataTable immediately. Thinking about the ConcurrentQueue T ...but I don't see how the WriteQueuedData..
Multithreading reference? http://stackoverflow.com/questions/601558/multithreading-reference Messages Parallel and Multi Core Computing with C C Thinking in Concurrently in .NET Programming the Thread Pool in the .NET..
Generic type conversion FROM string http://stackoverflow.com/questions/8625/generic-type-conversion-from-string sure if this is really the best way for me to do this.. Thinking about it the benefit I have from typing the property here will..
|