¡@

Home 

c# Programming Glossary: there's

Any decent C# profilers out there? [closed]

http://stackoverflow.com/questions/10644/any-decent-c-sharp-profilers-out-there

source .Net Memory Profiler really good for memory leaks there's a trial version Edit Nprof has been replaced with SlimTune and..

Should Usings be inside or outside the namespace

http://stackoverflow.com/questions/125319/should-usings-be-inside-or-outside-the-namespace

Math might be a bad name for a user defined class since there's already one in System the point here is just that there is a..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

dep In your entire application it may be that there's a huge dependency graph hidden behind IMyDependency but in a..

Transitioning from Windows Forms to WPF

http://stackoverflow.com/questions/15681352/transitioning-from-windows-forms-to-wpf

will look like. So to your answer your question about if there's other WPF designers suited for WinForms developers I would suggest..

Which .NET Dependency Injection frameworks are worth looking into? [closed]

http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into

two but I'd rather have competition than stagnation and there's a decent amount of healthy competition out there. Other IoC..

Best way to copy between two Stream instances

http://stackoverflow.com/questions/230128/best-way-to-copy-between-two-stream-instances

a threads blocking on I O completion . From .NET 4.0 on there's is the Stream.CopyTo method input.CopyTo output For .NET 3.5..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

from also using static methods and vice versa. As long as there's reasoning behind the differentiation and it's standardised...

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

should be thought about at least somewhat and that there's some common pitfalls to look out for. I can see though that..

How to read a text file reversely with iterator in C#

http://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp

from there at the bottom. Oh and it needs refactoring there's one pretty hefty method as you'll see using System using System.Collections.. null TextReader doesn't return an empty string if there's line break at the end of the data. Therefore we don't return..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

be an instance of TargetType i.e. if it's not that means there's a bug then casting is the right solution. That throws an exception..

Use of Application.DoEvents()

http://stackoverflow.com/questions/5181777/use-of-application-doevents

paint messages it delivers everything else as well. And there's a set of notifications that cause trouble. They come from about..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

collector to eventually come along and free it What if there's an open database connection Surely we don't want that connection.. user forgot to Dispose Warning subtle bug Keep reading But there's a bug in that code. You see the garbage collector runs on a..

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

mime types share improve this question In Urlmon.dll there's a function called FindMimeFromData . From the documentation..

C# Events and Thread Safety

http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety

work. Update in response to Eric Lippert's blog posts So there's a major thing I'd missed about event handlers event handlers.. all. It won't cause a NullReferenceException . And yes there's certainly a race condition but there always will be. Suppose..

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

is ready to be reused on the next Open call. So obviously there's no reason to avoid creating opening or closing connections since..

Difference Between Equals and ==

http://stackoverflow.com/questions/971954/difference-between-equals-and

defined operator overloading. In C# it depends. Unless there's an overloaded operator which handles it will behave like Java.. Java i.e. comparing for reference equality . However if there's an overload which matches the compile time types of a and b..

Enum type constraints in C# [duplicate]

http://stackoverflow.com/questions/1331739/enum-type-constraints-in-c-sharp

the feature. So far no one has done that for this one. There's no particularly unusual reason why not we have lots of other..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

wanting to put them in source control becomes a nightmare. There's also the issue of sheer effort. It might make sense to break..

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

lines to be used as connectors not just straight lines. There's a little red square shaped Thumb that will appear when you select..

How do ValueTypes derive from Object (ReferenceType) and still be ValueTypes?

http://stackoverflow.com/questions/1682231/how-do-valuetypes-derive-from-object-referencetype-and-still-be-valuetypes

type When you phrase it like that I hope it's obvious. There's nothing stopping you from putting a red box inside box V which..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

behind the differentiation and it's standardised. There's nothing worse than looking over a business layer sprawling with..

Randomize a List<T> in C#

http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp

big silly flaw in my comparison. They are of course right. There's nothing wrong with System.Random if it's used in the way it..

How do you sort a dictionary by value?

http://stackoverflow.com/questions/289/how-do-you-sort-a-dictionary-by-value

and their frequencies and want to order them by frequency. There's SortedList which is good for a single value frequency but I..

What do 'statically linked' and 'dynamically linked' mean?

http://stackoverflow.com/questions/311882/what-do-statically-linked-and-dynamically-linked-mean

one on disk. It's basically a method of deferred linking. There's an even more deferred method called late binding on some systems..

Will using 'var' affect performance?

http://stackoverflow.com/questions/356846/will-using-var-affect-performance

is here . c# performance share improve this question There's no extra IL code for the var keyword the resulting IL should..

How to read a text file reversely with iterator in C#

http://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c-sharp

in the middle of a character or not when you fetch data. There's nothing built into the framework and I suspect you'd have to..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

laptop these all execute in about 60ms. Two things to note There's no significant difference between them. In fact there are situations..

Use of Application.DoEvents()

http://stackoverflow.com/questions/5181777/use-of-application-doevents

this question Hmya the enduring mystique of DoEvents . There's been an enormous amount of backlash against it but nobody ever.. it is still executing the loop. That's bad. Very very bad. There's more the user could click the same menu item or button that..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

we have freed unmanaged resources freed managed resources There's no point in the GC running the finalizer everything's taken..

How to check if a number is a power of 2

http://stackoverflow.com/questions/600293/how-to-check-if-a-number-is-a-power-of-2

c# algorithm math share improve this question There's a simple trick for this problem bool IsPowerOfTwo ulong x return..

Clipboard event C#

http://stackoverflow.com/questions/621577/clipboard-event-c-sharp

Handle clipboard changed break ... There's more to be done passing things along the clipboard chain and..

Replacing .NET WebBrowser control with a better browser, like Chrome?

http://stackoverflow.com/questions/790542/replacing-net-webbrowser-control-with-a-better-browser-like-chrome

so many other features that the IE 8 engine lacks. Update There's new dual licensed project that allows you embed Chrome into..

C# AutoComplete

http://stackoverflow.com/questions/796195/c-sharp-autocomplete

e hideResults void hideResults listBox1.Visible false There's a lot more you could do without too much effort append text..

Nullable types and the ternary operator: why is `? 10 : null` forbidden? [duplicate]

http://stackoverflow.com/questions/858080/nullable-types-and-the-ternary-operator-why-is-10-null-forbidden

The 10 is an int literal not int and null is well null . There's no implicit conversion between those two hence the error message...

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

safety. Don't poach on the Connection Pool's territory There's a good reason why ADO.NET internally manages the underlying..