c# Programming Glossary: disallow
async/await - when to return a Task vs void? http://stackoverflow.com/questions/12144077/async-await-when-to-return-a-task-vs-void a void return type for events . If there's no reason to disallow having the caller await your task why disallow it 2 async methods.. reason to disallow having the caller await your task why disallow it 2 async methods that return void are special in another aspect..
C# Can I Override with derived types? http://stackoverflow.com/questions/157119/c-sharp-can-i-override-with-derived-types it did not expect. In C# there was a conscious decision to disallow changing the type when overloading properties even when they..
Interesting “params of ref” feature, any workarounds? http://stackoverflow.com/questions/1776020/interesting-params-of-ref-feature-any-workarounds it wrong this is the choice made by the designers of C. Or disallow it and have a system which is less flexible but more safe. We..
Why doesn't the C# compiler stop properties from referring to themselves? http://stackoverflow.com/questions/2336847/why-doesnt-the-c-sharp-compiler-stop-properties-from-referring-to-themselves the reasons above and the breaking change it would take to disallow this we wouldn't be able to prohibit self recursive properties...
Why aren't classes sealed by default? http://stackoverflow.com/questions/252257/why-arent-classes-sealed-by-default
Multi-client, async sockets in c#, best practices? [closed] http://stackoverflow.com/questions/284885/multi-client-async-sockets-in-c-best-practices requires the client to have one socket open but does not disallow having more. Additionally most MMORPGS also encrypt all their..
string = string + int: What's behind the scene? (C#) http://stackoverflow.com/questions/3398604/string-string-int-whats-behind-the-scene-c assuming fact you can implicite concat string and int C# disallow initializing string as string sth 0 Error Cannot convert source..
Why does C# limit the set of types that can be declared as const? http://stackoverflow.com/questions/441420/why-does-c-sharp-limit-the-set-of-types-that-can-be-declared-as-const special case handle some types like IntPtr or just disallow every call to any code. IntPtr as an example though being a..
Why does C# disallow readonly local variables? http://stackoverflow.com/questions/443687/why-does-c-sharp-disallow-readonly-local-variables does C# disallow readonly local variables Having a friendly debate with a co..
Write-Only properties, what's the point? [duplicate] http://stackoverflow.com/questions/4695551/write-only-properties-whats-the-point someone to input data and not read it. Why would you disallow this Most likely because the information that has been passed..
Using a self-signed certificate with .NET's HttpWebRequest/Response http://stackoverflow.com/questions/526711/using-a-self-signed-certificate-with-nets-httpwebrequest-response break Return true allow unauthenticated server false disallow unauthenticated server. return certMatch share improve this..
Regular Expression for password validation http://stackoverflow.com/questions/5859632/regular-expression-for-password-validation if you wish for example you could change it to S 8 15 to disallow whitespace but remember that doing so will reduce the strength..
Software License http://stackoverflow.com/questions/6846504/software-license profile matches. If it doesn't the license is pirated so disallow access to the application. You can also log how many activations..
C# Decimal.Parse issue with commas http://stackoverflow.com/questions/831727/c-sharp-decimal-parse-issue-with-commas includes NumberStyles.AllowThousands . If you want to disallow the thousands separators you can just remove that flag like..
Regular expression for validating names and surnames? http://stackoverflow.com/questions/888838/regular-expression-for-validating-names-and-surnames work is by only allowing what is strictly necessary not by disallowing known XSS vectors i.e. disallowing script etc... . To get.. necessary not by disallowing known XSS vectors i.e. disallowing script etc... . To get an idea of the incredible variety.. but I didn't want to read 30 answers translitterating disallow the or and you are safe . See here for a good starting point..
|