c# Programming Glossary: forces
Can Resharper be set to warn if IDisposable not handled correctly? http://stackoverflow.com/questions/101664/can-resharper-be-set-to-warn-if-idisposable-not-handled-correctly in Resharper 4 or even Visual Studio itself... that forces a warning if I forget to wrap code in a using block or ommit..
Refactoring code to avoid anti-pattern http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern principle Using the Single Responsibility Principle forces my containers to have public setters http programmers.stackexchange.com..
Converting C# knowledge to VB.NET any potential problems? http://stackoverflow.com/questions/1337253/converting-c-sharp-knowledge-to-vb-net-any-potential-problems removes the late binding semantics of VB.Net and forces it to be a strictly typed language. This will make it closer..
How to Access AppData in IE Protected Mode (from a Managed BHO) http://stackoverflow.com/questions/1992765/how-to-access-appdata-in-ie-protected-mode-from-a-managed-bho run in protected mode IE's new UAC compliant mode which forces all extensions to run at low integrity it fails because it cannot..
Storing credit card details http://stackoverflow.com/questions/206438/storing-credit-card-details credit card details I have a business requirement that forces me to store a customer's full credit card details number name..
Why do we need a private constructor? http://stackoverflow.com/questions/2585836/why-do-we-need-a-private-constructor to a single assembly but the private constructor forces all implementations to be nested classes. public abstract class..
TaskCreationOptions.LongRunning option and ThreadPool http://stackoverflow.com/questions/3105988/taskcreationoptions-longrunning-option-and-threadpool threadpool share improve this question Yes LongRunning forces the creation of a new thread outside the pool. Here's some pseudo..
Garbage collection when using anonymous delegates for event handling http://stackoverflow.com/questions/371109/garbage-collection-when-using-anonymous-delegates-for-event-handling is still alive same problem with s o ɯ ɹ answer below here forces you to modify publisher and doesn't really work with anonymous..
How to pass a function as a parameter in C#? http://stackoverflow.com/questions/380198/how-to-pass-a-function-as-a-parameter-in-c C# I can do it using the Func or Action classes but this forces me to declare the entire function signature at once. When I..
When should I dispose of a data context http://stackoverflow.com/questions/389822/when-should-i-dispose-of-a-data-context properties. These attempts will fail. Dispose also forces the DataContext to dump its cache of materialized entities so..
C# - Realtime console output redirection http://stackoverflow.com/questions/4501511/c-sharp-realtime-console-output-redirection write anything to standard output again . Since BeginRead forces you to use a constant length buffer check if the return value..
Is BCrypt a good hashing algorithm to use in C#? Where can I find it? http://stackoverflow.com/questions/481160/is-bcrypt-a-good-hashing-algorithm-to-use-in-c-where-can-i-find-it than MD5 and still much longer than AES or SHA 512 . It forces the hacker to spend a lot more time to create a rainbow table..
Changing the View for a ViewModel http://stackoverflow.com/questions/5309099/changing-the-view-for-a-viewmodel ItemViewType.View1 The magic senquence of actions which forces a contentcontrol to change the content template var copy this.ItemViewModel..
MVC 3: How to render a view without its layout page? http://stackoverflow.com/questions/5318385/mvc-3-how-to-render-a-view-without-its-layout-page layout page injected. However I don't like this because it forces me to create empty views with just a @ Html.RenderPartial in..
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 line via MSBuild is a useful exercise in itself because it forces your tools to be current. c# build continuous integration build..
To return IQueryable<T> or not return IQueryable<T> http://stackoverflow.com/questions/718624/to-return-iqueryablet-or-not-return-iqueryablet it rules out non composable implementations or it forces you to write your own query provider for them it means you can't..
Query extremely slow in code but fast in SSMS http://stackoverflow.com/questions/7637907/query-extremely-slow-in-code-but-fast-in-ssms client_id column is of type VARCHAR . The application thus forces a table scan where the SSMS query can do a quick key seek. This..
Create Generic method constraining T to an Enum http://stackoverflow.com/questions/79126/create-generic-method-constraining-t-to-an-enum the Parse function and pass a type as an attribute which forces the ugly boxing requirement to your code. EDIT All suggestions..
Return DataReader from DataLayer in Using statement http://stackoverflow.com/questions/850065/return-datareader-from-datalayer-in-using-statement do a little better. My main complaint right now is that it forces all the records to be loaded into memory even for large sets...
Strange behavior when casting a float to int in C# http://stackoverflow.com/questions/8911440/strange-behavior-when-casting-a-float-to-int-in-c-sharp 62. In the second example the explicit assignment to float forces the rounding to take place before the conversion to integer...
|