c# Programming Glossary: both
How to inject Javascript in WebBrowser control? http://stackoverflow.com/questions/153748/how-to-inject-javascript-in-webbrowser-control alert 'hello' scriptEl.InnerHtml and scriptEl.InnerText both give errors System.NotSupportedException Property is not supported..
Transitioning from Windows Forms to WPF http://stackoverflow.com/questions/15681352/transitioning-from-windows-forms-to-wpf pretty much hit the limit of what Windows Forms can do both using pure .NET and special effects with Native Code. I know..
How to create and connect custom user buttons/controls with lines using windows forms http://stackoverflow.com/questions/15819318/how-to-create-and-connect-custom-user-buttons-controls-with-lines-using-windows to know that the container that holds all these items both nodes and connectors is actually a ListBox . Things worth noting..
Automating the InvokeRequired code pattern http://stackoverflow.com/questions/2367718/automating-the-invokerequired-code-pattern object2.Visible false This is an awkward pattern in C# both to remember and to type. Has anyone come up with some sort of.. Invoke every time and even then the Invoke syntax is both inefficient and still awkward to deal with. So has anyone figured..
Why is lock(this) {…} bad? http://stackoverflow.com/questions/251391/why-is-lockthis-bad using 'Nancy Drew' literal locked by 'person.Name' since both are the same object thanks to inlining else Monitor.Exit Nancy.. using 'Nancy Drew' literal locked by 'person.Name' since both are the same object thanks to inlining 'this' person is locked..
Returning IEnumerable<T> vs IQueryable<T> http://stackoverflow.com/questions/2876616/returning-ienumerablet-vs-iqueryablet from c in db.Customers where c.City City select c Will both be deferred execution When should one be preferred over the.. ienumerable iqueryable share improve this question Yes both will give you deferred execution. The difference is that IQueryable..
What is the difference between i++ and ++i? http://stackoverflow.com/questions/3346450/what-is-the-difference-between-i-and-i is the difference between i and i I've seen them both being used in numerous pieces of C# code and I'd like to know.. value' They are Pre increment post increment operators. In both cases the variable is incremented but if you were to take the.. is incremented but if you were to take the value of both expressions in exactly the same cases the result will differ...
Case insensitive 'Contains(string)' http://stackoverflow.com/questions/444798/case-insensitive-containsstring to set the case sensitivity.. Currently I UPPERCASE them both but that's just silly. UPDATE The sillyness I refer to is the..
Best practice to save application settings in a Windows Forms Application http://stackoverflow.com/questions/453161/best-practice-to-save-application-settings-in-a-windows-forms-application configuration file This technique is applicable both for console Windows Forms and other project types. Note that..
Casting vs using the 'as' keyword in the CLR http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr As per naasking's answer is and cast or is and as are both as fast as as and null check with modern JITs as shown by the.. consistency. I maintain that is and cast or is and as are both unsafe when dealing with variables as the type of the value..
When to use struct in C#? http://stackoverflow.com/questions/521298/when-to-use-struct-in-c not require initialization like a reference type. This is both the beauty and the bane of the value type. In order to use Entry..
Proper use of the IDisposable interface http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface pattern to do this is to have Finalize and Dispose both call a third method where you pass a Boolean saying if you're.. this is tell the garbage collector that it doesn't need to bother finalizing the object its resources have already been cleaned.. Dispose it's safe GC.SuppressFinalize this Hey GC don't bother calling finalize later Now that the user has called Dispose..
What is the difference between Decimal, Float and Double in C#? http://stackoverflow.com/questions/618535/what-is-the-difference-between-decimal-float-and-double-in-c The binary number and the location of the binary point are both encoded within the value. decimal is a floating decimal point.. Again the number and the location of the decimal point are both encoded within the value that's what makes decimal still a floating..
ExecuteReader requires an open and available Connection. The connection's current state is Connecting http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren Edit Not to forget my connection string and connection are both in static. I believe this is the reason. Please advise. public..
How do I use reflection to invoke a private method? http://stackoverflow.com/questions/135443/how-do-i-use-reflection-to-invoke-a-private-method I need to call one dynamically based on an input value. Both the invoking code and the target methods are in the same instance...
How to convert a Unicode character to its ASCII equivalent http://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent share improve this question Okay let's elaborate. Both csgero and bzlm pointed in the right direction. Because of blzm's..
Calculate the number of business days between two dates? http://stackoverflow.com/questions/1617049/calculate-the-number-of-business-days-between-two-dates lastDayOfWeek 7 if firstDayOfWeek 6 if lastDayOfWeek 7 Both Saturday and Sunday are in the remaining time interval businessDays..
Compiler Ambiguous invocation error - anonymous method and method group with Func<> or Action http://stackoverflow.com/questions/2057146/compiler-ambiguous-invocation-error-anonymous-method-and-method-group-with-fun resolution on Y X . We have two candidates Y D1 and Y D2 . Both are applicable. Which is better Nowhere in the specification..
How do C# Events work behind the scenes? http://stackoverflow.com/questions/213638/how-do-c-sharp-events-work-behind-the-scenes Remove to change the value of the auto generated field. Both of these operations assign to the backing field remember that..
Windows service and timer http://stackoverflow.com/questions/246697/windows-service-and-timer you. c# windows services share improve this question Both System.Timers.Timer and System.Threading.Timer will work for.. the counter and signal Main. invokeCount 0 autoEvent.Set Both examples comes from the MSDN pages. share improve this answer..
Sharing sessions across applications using the ASP.NET Session State Service http://stackoverflow.com/questions/2868316/sharing-sessions-across-applications-using-the-asp-net-session-state-service application the other is as .net 3.5 MVC2 application. Both apps have their session set up like this sessionState mode StateServer.. can share any session keys and or forms authenication. Both apps would do something like this in there web.config sessionState..
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 the configurations below have been tried on 2 machines. Both are Windows xp sp3 32 bit with a 64 bit capable processor. The..
How to check the number of bytes consumed by my structure? http://stackoverflow.com/questions/3361986/how-to-check-the-number-of-bytes-consumed-by-my-structure will return the memory usage size of the variable 'size' Both lines are basically equal the first one makes use of ex. methods..
Performance differences between debug and release builds http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds build version of your program. It does happen however. Both the x64 and the x86 jitters have had problems with structs...
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 you should create a different kind of application. Both Windows Forms and WPF are intended for user mode applications..
Use of Application.DoEvents() http://stackoverflow.com/questions/5181777/use-of-application-doevents solved the user cannot do anything to mess up the logic. Both the close the window and start the job again failure modes are..
When to use struct in C#? http://stackoverflow.com/questions/521298/when-to-use-struct-in-c from Add to Remove Clear or garbage collection And ... 4. Both structs store TKey and TValue which we all know are quite capable..
Should C# methods that *can* be static be static? [closed] http://stackoverflow.com/questions/731763/should-c-sharp-methods-that-can-be-static-be-static duplication An explosion in the number of method arguments Both of those things are bad. So my advice would be that if you have..
Login failed for user 'IIS APPPOOL\ASP.NET v4.0' http://stackoverflow.com/questions/7698286/login-failed-for-user-iis-apppool-asp-net-v4-0 locally in IIS I have my Default Web Site with my deploy. Both my deploy and Default Web Site are on pool ASP.NET v4.0 look..
Programming P2P application http://stackoverflow.com/questions/8523330/programming-p2p-application the inviter's candidate list on. Hole punching step. Both clients start sending test messages over UDP to the other side's..
Why catch and rethrow Exception in C#? http://stackoverflow.com/questions/881473/why-catch-and-rethrow-exception-in-c isn't it ... i.e they both refined C . I did search Both SO and google and failed to find an authorative answer to exactly..
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 two WebApplications in IIS namely HRMS TravelDesk. Both WebApps are sharing session via AspState the config information..
|