c# Programming Glossary: attention
File.Copy vs. Manual FileStream.Write For Copying File http://stackoverflow.com/questions/1246899/file-copy-vs-manual-filestream-write-for-copying-file CopyFile Win32 function and this function takes lot of attention from MS crew remember this Vista related threads about slow..
Should I learn VB.NET or C#? [closed] http://stackoverflow.com/questions/1653895/should-i-learn-vb-net-or-c also still encourages some bad practices if you don ™t pay attention in particular because Microsoft has irresponsibly decided to..
Abuse of C# lambda expressions or Syntax brilliance? http://stackoverflow.com/questions/1718037/abuse-of-c-sharp-lambda-expressions-or-syntax-brilliance of the generated HTML to width 100 . Now if you pay attention 'style' is nowhere specified is deduced from the name of the..
Weak event handler model for use with lambdas http://stackoverflow.com/questions/1747235/weak-event-handler-model-for-use-with-lambdas h It was the first argument that caught my attention. This is the workaround for the absence of a delegate type constraint...
format of for loops http://stackoverflow.com/questions/1783822/format-of-for-loops years later Since this thread recently got again a lot of attention I would like to add that it will be difficult to answer this..
Why does one often see “null != variable” instead of “variable != null” in C#? http://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c recently I saw the first one quite often and it caught my attention since I was used to the second one. If there is no difference..
Why C# doesn't implement indexed properties? http://stackoverflow.com/questions/2806894/why-c-sharp-doesnt-implement-indexed-properties the section about COM Interop the following part caught my attention By the way this code uses one more new feature indexed properties..
Changing master volume level http://stackoverflow.com/questions/294292/changing-master-volume-level I don't know I haven't tested it and haven't paid enough attention to know if these field sizes expand to 64 bits. caveat codor..
why do we need the new keyword and why is the default behavior to hide and not override? http://stackoverflow.com/questions/3117838/why-do-we-need-the-new-keyword-and-why-is-the-default-behavior-to-hide-and-not-o new cause a warning Because we want to bring it to your attention that you are hiding something and might be doing it accidentally...
Why are C# 3.0 object initializer constructor parentheses optional? http://stackoverflow.com/questions/3661025/why-are-c-sharp-3-0-object-initializer-constructor-parentheses-optional signal people if there is something you want brought to my attention you can always click on the contact link on my blog. Second..
Re-entrant locks in C# http://stackoverflow.com/questions/391913/re-entrant-locks-in-c-sharp objects that's when you have to be careful. Pay particular attention to Always acquire locks on a given number of objects in the..
How can a Windows Service start a process when a Timer event is raised? http://stackoverflow.com/questions/4516200/how-can-a-windows-service-start-a-process-when-a-timer-event-is-raised diagram illustrating the new model paying specific attention to the dividing lines The upshot is that if you're targeting..
How do I make a WPF window movable by dragging the extended window frame? http://stackoverflow.com/questions/5493149/how-do-i-make-a-wpf-window-movable-by-dragging-the-extended-window-frame want to ignore hits against the grid itself and only pay attention to the controls within it. Hence In MainWindow private bool..
How and why do I set up a C# build machine? http://stackoverflow.com/questions/616149/how-and-why-do-i-set-up-a-c-sharp-build-machine to New Hotness WiX. Basically for those who are paying attention if you can run your build from the command line then you can..
Memory barrier generators http://stackoverflow.com/questions/6581848/memory-barrier-generators to Hans Passant for discovering this and bringing it to my attention. 1 1 This explains why BackgroundWorker works correctly without..
Make ASP.NET WCF convert dictionary to JSON, omitting “Key” & “Value” tags http://stackoverflow.com/questions/7590088/make-asp-net-wcf-convert-dictionary-to-json-omitting-key-value-tags and be able to do what you want. See example below and pay attention to the GetObjectData method. Serializable public class AjaxDictionary..
Eric Lippert's challenge “comma-quibbling”, best answer? http://stackoverflow.com/questions/788535/eric-lipperts-challenge-comma-quibbling-best-answer best answer I wanted to bring this challenge to the attention of the stackoverflow community. The original problem and answers..
How to use HTML Agility pack http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack and selectNodes methods that accept XPath expressions. Pay attention to the HtmlDocument.Option boolean properties. These control..
Unable to cast object of type 'System.DBNull' to type 'System.String` http://stackoverflow.com/questions/870697/unable-to-cast-object-of-type-system-dbnull-to-type-system-string string.Empty accountNumber.ToString EDIT Haven't paid attention to ExecuteScalar. It does really return null if the field is..
Try-catch speeding up my code? http://stackoverflow.com/questions/8928403/try-catch-speeding-up-my-code can be made dead earlier. Thanks for bringing this to our attention and apologies for the odd behaviour. share improve this answer..
|