c# Programming Glossary: yes
Using CookieContainer with WebClient class http://stackoverflow.com/questions/1777221/using-cookiecontainer-with-webclient-class webclient cookiecontainer share improve this question Yes. IMHO overriding GetWebRequest is the best solution to WebClient's..
Should C# have multiple inheritance? [closed] http://stackoverflow.com/questions/191691/should-c-sharp-have-multiple-inheritance improve this question I've never missed it once not ever. Yes it MI gets complicated and yes interfaces do a similar job in..
How To: Execute command line in C#, get STD OUT results http://stackoverflow.com/questions/206323/how-to-execute-command-line-in-c-get-std-out-results selected and write the results to a text box. Yes I could figure this out for myself but surely someone else has..
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 sure that no new JITted code contributes to the number. Yes it's as hacky as it sounds but I've used it to good effect before..
What's the point of the var keyword? http://stackoverflow.com/questions/209199/whats-the-point-of-the-var-keyword designers bother to include a var keyword at all Update Yes var supports Anonymous types but anonymous types by themselves..
C# Captured Variable In Loop http://stackoverflow.com/questions/271440/c-sharp-captured-variable-in-loop closures captured variable share improve this question Yes take a copy of the variable inside the loop while variable 5..
Proper way to implement IXmlSerializable? http://stackoverflow.com/questions/279534/proper-way-to-implement-ixmlserializable c# xml xml serialization share improve this question Yes GetSchema should return null . IXmlSerializable.GetSchema Method..
Returning IEnumerable<T> vs IQueryable<T> http://stackoverflow.com/questions/2876616/returning-ienumerablet-vs-iqueryablet sql ienumerable iqueryable share improve this question Yes both will give you deferred execution. The difference is that..
c# evaluating string “3*(4+2)” yield int 18 [duplicate] http://stackoverflow.com/questions/333737/c-sharp-evaluating-string-342-yield-int-18 math numeric evaluate share improve this question Yes you can let C# compiler evaluate it at runtime. See CSharpCorner..
Are string.Equals() and == operator really same? [duplicate] http://stackoverflow.com/questions/3678792/are-string-equals-and-operator-really-same object y new StringBuilder hello .ToString if x.Equals y Yes The compiler doesn't know to call string string so it generates.. call string string comparing values appropriately if xs ys Yes Equals will go bang if you call it on null won't string x null.. string x null string y null if x.Equals y Bang if x y Yes Note that you can avoid the latter being a problem using object.Equals..
Why is it important to override GetHashCode when Equals method is overridden? http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden c# override hashcode share improve this question Yes it is important if your item will be used as a key in a dictionary..
How can I read the properties of a C# class dynamically? http://stackoverflow.com/questions/4629/how-can-i-read-the-properties-of-a-c-sharp-class-dynamically that teaches me to read the questions thoroughly first. Yes reflection would be able to give you some help here. If you..
Convert generic List/Enumerable to DataTable? http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable data Id Name Description table.Load reader Yes this is pretty much the exact opposite of this one reflection..
Developing Internet Explorer Extensions? http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions Icon key.SetValue HotIcon key.SetValue Default Visible Yes key.SetValue MenuText Highlighter options key.SetValue ToolTip..
.Net - Reflection set object property http://stackoverflow.com/questions/619767/net-reflection-set-object-property this c# .net reflection share improve this question Yes you can use Type.InvokeMember using System.Reflection MyObject..
Is there a difference between “throw” and “throw ex”? http://stackoverflow.com/questions/730250/is-there-a-difference-between-throw-and-throw-ex exception handling share improve this question Yes there is a difference throw ex resets the stack trace so your..
String vs. StringBuilder http://stackoverflow.com/questions/73883/string-vs-stringbuilder choice c# .net performance share improve this question Yes the performance difference is significant. See the KB article..
How can I make a .Net Winforms application that only runs in the System Tray? http://stackoverflow.com/questions/995195/how-can-i-make-a-net-winforms-application-that-only-runs-in-the-system-tray exists in WinForms space can I do a pure WPF solution Yes you can I just had an article published on Simple Talk.com that..
.NET HashTable Vs Dictionary - Can the Dictionary be as fast? http://stackoverflow.com/questions/1089132/net-hashtable-vs-dictionary-can-the-dictionary-be-as-fast situations might you use to choose one above the other yes the last one is a bit ambiguous . c# .net collections dictionary..
Arrays, heap and stack and value types http://stackoverflow.com/questions/1113819/arrays-heap-and-stack-and-value-types the heap From what I've read on CLR via c# the answer is yes. But what I can't understand is what happens to the actual int's..
How to execute a stored procedure within C# program http://stackoverflow.com/questions/1260952/how-to-execute-a-stored-procedure-within-c-sharp-program procedure dbo.test . Do I need to provide the path If yes in which location should the stored procedures be stored c#..
Reducing memory usage of .NET applications? http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications server possibly utilized by 10 20 or more users then yes you absolutely must consider memory usage. And you will need..
Set focus on textbox in WPF from view model (C#) & wPF http://stackoverflow.com/questions/1356045/set-focus-on-textbox-in-wpf-from-view-model-c-wpf cs.txtCompanyID in your example Is it a TextBox control If yes then you are on a wrong way. Generally speaking it's not a good..
Adjusting HttpWebRequest Connection Timeout in C# http://stackoverflow.com/questions/1500955/adjusting-httpwebrequest-connection-timeout-in-c-sharp show up as very big time factor on some deployments. And yes you must code your app around the WebRequest.BeginGetRequestStream..
TransactionScope automatically escalating to MSDTC on some machines? http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines it tries to escalate on the second connection.Open and yes there is no other connection open at the time. using TransactionScope..
Should C# have multiple inheritance? [closed] http://stackoverflow.com/questions/191691/should-c-sharp-have-multiple-inheritance missed it once not ever. Yes it MI gets complicated and yes interfaces do a similar job in many ways but that isn't the..
Websocket server: onopen function on the web socket is never called http://stackoverflow.com/questions/2211898/websocket-server-onopen-function-on-the-web-socket-is-never-called in short Has any of you ever accomplished this and if yes how did you do it And of cause Do you see any apparent errors..
What is a message pump? http://stackoverflow.com/questions/2222365/what-is-a-message-pump state of the program. Perhaps you can see where that leads yes when a program is executing the message loop it is idle. The..
Do event handlers stop garbage collection from occuring? http://stackoverflow.com/questions/298261/do-event-handlers-stop-garbage-collection-from-occuring instance method includes a reference to the instance. So yes an event subscription will prevent GC. However as soon as the..
Reading csv file http://stackoverflow.com/questions/3507498/reading-csv-file in .NET BCL. add a reference to the Microsoft.VisualBasic yes it says VisualBasic but it works in C# just as well remember..
C# switch statement limitations - why? http://stackoverflow.com/questions/44905/c-sharp-switch-statement-limitations-why you can switch on and case statements. For example and yes I know if you're doing this sort of thing it probably means..
Why and How to avoid Event Handler memory leaks? http://stackoverflow.com/questions/4526829/why-and-how-to-avoid-event-handler-memory-leaks you unsubscribe from the event with an equal handler then yes that will remove the handler and the possible leak. However..
Inline functions in C#? http://stackoverflow.com/questions/473782/inline-functions-in-c or more general one like virtual functions . Overall yes this is a hint to compiler but I guess that is what was asked..
What is the difference between null and System.DBNull.Value? http://stackoverflow.com/questions/4958379/what-is-the-difference-between-null-and-system-dbnull-value any difference between null and System.DBNull.Value If yes what is it I noticed this behavior now while rdr.Read if rdr..
How to call code behind server method from a client side javascript function? http://stackoverflow.com/questions/5828803/how-to-call-code-behind-server-method-from-a-client-side-javascript-function c# javascript .net asp.net share improve this question yes you can make web method like.. WebMethod public static String..
Interface defining a constructor signature? http://stackoverflow.com/questions/619856/interface-defining-a-constructor-signature Some people wanted an example it's a free time project so yes it's a game IDrawable Update Draw To be able to Update check..
C# Events and Thread Safety http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety that's all. It won't cause a NullReferenceException . And yes there's certainly a race condition but there always will be...
Web app blocked while processing another web app on sharing same session http://stackoverflow.com/questions/9426673/web-app-blocked-while-processing-another-web-app-on-sharing-same-session the session is shared across the two web applications then yes this is the reason. The session is lock the response. To avoid..
Excel “External table is not in the expected format.” http://stackoverflow.com/questions/1139390/excel-external-table-is-not-in-the-expected-format Data Source pathname Extended Properties Excel 8.0 HDR YES IMEX 1 using OleDbDataAdapter adaptor new OleDbDataAdapter sql..
Speed up insert mdb http://stackoverflow.com/questions/2248604/speed-up-insert-mdb For example SELECT ID Field1 INTO NewTable FROM Text HDR YES FMT Delimited IMEX 2 DATABASE C Docs .Some.CSV You can use something..
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 points whatever would be highly appreciated. Thank you YES I DID SEE THE KB. IT DIDN'T HELP See it here http support.microsoft.com..
System Tray only (no dock icon) application using C# / Mono on Mac http://stackoverflow.com/questions/4414629/system-tray-only-no-dock-icon-application-using-c-sharp-mono-on-mac type item and name it LSUIElement and set the value to YES . Hope it helps. Regards Peyman Mortazavi share improve this..
Are Java and C# regular expressions compatible? http://stackoverflow.com/questions/538579/are-java-and-c-sharp-regular-expressions-compatible Q... E escapes a string of metacharacters .NET NO Java YES Q... E escapes a string of character class metacharacters in.. class metacharacters in character sets .NET NO Java YES n explicit capture modifier .NET YES Java NO and m n possessive.. sets .NET NO Java YES n explicit capture modifier .NET YES Java NO and m n possessive quantifiers .NET NO Java YES text..
|