c# Programming Glossary: something
Simple 2 way encryption for C# http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp for some data. It's not mission critical. I need something to keep honest people honest but something a little stronger.. I need something to keep honest people honest but something a little stronger than ROT13 or Base64. I'd prefer something.. a little stronger than ROT13 or Base64. I'd prefer something that is already included in the .Net framework 2.0 so I don't..
What is the correct way to create a single instance application? http://stackoverflow.com/questions/19147/what-is-the-correct-way-to-create-a-single-instance-application that can only be run as a single instance I know it has something to do with some mythical thing called a mutex rarely can I find..
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 this out for myself but surely someone else has done something like it and I'm lazy... c# command line share improve this..
VS2010 does not show unhandled exception message in a WinForms Application on a 64-bit version of Windows http://stackoverflow.com/questions/4933958/vs2010-does-not-show-unhandled-exception-message-in-a-winforms-application-on-a there was a column called unhandled exceptions or something like this in this dialog box which would do excatly what I want...
Casting vs using the 'as' keyword in the CLR http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr is TargetType TargetType foo TargetType randomObject Do something with foo Not only is this checking twice but it may be checking..
Use of Application.DoEvents() http://stackoverflow.com/questions/5181777/use-of-application-doevents ShowDialog . It executes DoEvents but do note that it does something else. It disables all the windows in the application other than.. a dialog active and not being able to copy and paste something from another window But that's the price. Which is what it takes..
Creating a blocking Queue<T> in .NET? http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net looks very unsafe very little synchronization how about something like class SizeQueue T private readonly Queue T queue new Queue.. the queue so that readers start exiting cleanly perhaps something like a bool flag if set an empty queue just returns rather than..
How does one parse XML files? [closed] http://stackoverflow.com/questions/55828/how-does-one-parse-xml-files crude to me leading me to suspect that I must be missing something in my searches. Is there a simpler method of parsing XML files..
What is the best workaround for the WCF client `using` block issue? http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue IDisposable using var client new SomeWCFServiceClient Do something with the client But as noted in this MSDN article wrapping a.. block and to instead instantiate your clients and use them something like this try ... client.Close catch CommunicationException..
Using .NET, how can you find the mime type of a file based on the file signature not the extension http://stackoverflow.com/questions/58510/using-net-how-can-you-find-the-mime-type-of-a-file-based-on-the-file-signature type where the file extension is incorrect or not given something similar to this question only in .Net. c# mime mime types ..
Difference between Property and Field in C# 3.0+ http://stackoverflow.com/questions/653536/difference-between-property-and-field-in-c-sharp-3-0 string MyString get set considering that the compiler does something like creating the private field AFAIK what is the difference..
Deep cloning objects in C# http://stackoverflow.com/questions/78536/deep-cloning-objects-in-c-sharp cloning objects in C# I want to do something like myObject myObj GetmyObj Create and fill a new object myObject..
How to use HTML Agility pack http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack body if bodyNode null Do something with bodyNode NB This code is an example only and not necessarily..
Is there a reason for C#'s reuse of the variable in a foreach? http://stackoverflow.com/questions/8898925/is-there-a-reason-for-cs-reuse-of-the-variable-in-a-foreach debug while producing no perceivable benefits. Is there something you can do with foreach loops this way that you couldn't if.. Closing over the loop variable considered harmful Is there something you can do with foreach loops this way that you couldn't if..
How can I detect the encoding/codepage of a text file http://stackoverflow.com/questions/90838/how-can-i-detect-the-encoding-codepage-of-a-text-file a garbled piece of text. If somebody is called François or something with your human intelligence you can guess this. I've created..
Making Entity Class Closed for Changes http://stackoverflow.com/questions/11425993/making-entity-class-closed-for-changes partial class CreditCardPayment IPayment more code ... Something on your EF context to get all payments public partial class..
How to wait for a BackgroundWorker to cancel? http://stackoverflow.com/questions/123661/how-to-wait-for-a-backgroundworker-to-cancel that the worker's RunWorkerCompleted event handlers sets. Something like Event _workerDoneEvent new WaitHandle public void CancelDoingStuff..
Expression Versus Statement http://stackoverflow.com/questions/19132/expression-versus-statement statement share improve this question Expression Something which evaluates to a value. Example 1 2 x Statement A line of..
Dependency Inject (DI) “friendly” library http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library you could consider providing Fluent Builders. Something like this public class MyFacade private IMyInterface dep public..
Why Response.Redirect causes System.Threading.ThreadAbortException? http://stackoverflow.com/questions/2777105/why-response-redirect-causes-system-threading-threadabortexception to say the least. Is there a better way to do this Something other than Response.Redirect or is there a way to force the..
C# Conditional Compilation and framework targets http://stackoverflow.com/questions/2923210/c-sharp-conditional-compilation-and-framework-targets conditional compilation in C# to switch these as needed. Something like #if NET40 using FooXX Foo40 #elif NET35 using FooXX Foo35..
C# generic constraint for only integers http://stackoverflow.com/questions/32664/c-sharp-generic-constraint-for-only-integers keyword but can't find an interface for only these types Something like static bool IntegerFunction T T value where T INumeric..
How to use __doPostBack() http://stackoverflow.com/questions/3591634/how-to-use-dopostback no idea how to do it. I want to use vanilla javascript. Something simple like a button click can cause the __doPostBack event..
How can I close a login form and show the main form without my application closing? http://stackoverflow.com/questions/4759334/how-can-i-close-a-login-form-and-show-the-main-form-without-my-application-closi can exit the application without showing any form at all. Something like this static void Main LoginForm fLogin new LoginForm if..
What is the best workaround for the WCF client `using` block issue? http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue override the client's Dispose method wherever you use it. Something like public partial class SomeWCFServiceClient IDisposable void..
.Net - Reflection set object property http://stackoverflow.com/questions/619767/net-reflection-set-object-property obj.Name MyName I want to set obj.Name with reflection. Something like Reflection.SetProperty obj Name MyName Is there a way of..
Create code first, many to many, with additional fields in association table http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table MemberID get set public int CommentID get set public int Something get set public string SomethingElse get set How do I configure.. get set public int Something get set public string SomethingElse get set How do I configure my association with fluent API.. get set public virtual Comment Comment get set public int Something get set public string SomethingElse get set If you now want..
How to write a scalable Tcp/Ip based server http://stackoverflow.com/questions/869744/how-to-write-a-scalable-tcp-ip-based-server _sockets _sockets.Remove conn catch SocketException e Something went terribly wrong which shouldn't have happened if conn.socket..
|