¡@

Home 

c# Programming Glossary: you've

How slow are .NET exceptions?

http://stackoverflow.com/questions/161942/how-slow-are-net-exceptions

Basically exceptions shouldn't happen often unless you've got significant correctness issues and if you've got significant.. unless you've got significant correctness issues and if you've got significant correctness issues then performance isn't the..

Whats the main difference between int.Parse() and Convert.ToInt32

http://stackoverflow.com/questions/199470/whats-the-main-difference-between-int-parse-and-convert-toint32

to use while coding. c# share improve this question If you've got a string and you expect it to always be an integer say if..

Does using “new” on a strict allocate it on the heap or stack?

http://stackoverflow.com/questions/203695/does-using-new-on-a-strict-allocate-it-on-the-heap-or-stack

a difference what you're going to do with the value after you've initialized it. The IL used for Guid localVariable new Guid..

Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”

http://stackoverflow.com/questions/2155930/fixing-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-fo

Reading Xml with XmlReader in C#

http://stackoverflow.com/questions/2441673/reading-xml-with-xmlreader-in-c-sharp

that it's very easy to accidentally read too much. I know you've said you want to read it as quickly as possible but have you..

What C# mocking framework to use? [closed]

http://stackoverflow.com/questions/37359/what-c-sharp-mocking-framework-to-use

improve this question I've not used most of the ones you've listed so I can't be objective about it but I use Moq and it..

What static analysis tools are available for C#? [closed]

http://stackoverflow.com/questions/38635/what-static-analysis-tools-are-available-for-c

that. Anything beyond this Real life opinions about tools you've used are appreciated. c# code analysis static analysis share..

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

you're using a fixed size encoding e.g. ASCII . When you've got variable size encoding such as UTF 8 you will keep having..

C#: How to Make it Harder for Hacker/Cracker to Get Around or Bypass the Licensing Check?

http://stackoverflow.com/questions/4532540/c-how-to-make-it-harder-for-hacker-cracker-to-get-around-or-bypass-the-licensi

Proper use of the IDisposable interface

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

went poking around MSDN yourself it's unmanaged. Anything you've used P Invoke calls to get outside of the nice comfy world of.. you're now responsible for cleaning it up. The object that you've created needs to expose some method that the outside world can.. the IDisposable interface and that way you promise that you've written that single method to clean up your unmanaged resources..

Calling null on a class vs Dispose()

http://stackoverflow.com/questions/574019/calling-null-on-a-class-vs-dispose

branches of the loop need to use the variable but you know you've reached a point at which you don't. For example SomeObject foo.. not. If you only indirectly hold unmanaged resources e.g. you've got a FileStream as a member variable then adding your own finalizer..

Read MS Exchange email in C#

http://stackoverflow.com/questions/652549/read-ms-exchange-email-in-c-sharp

remotely useless. You could interop with Outlook but now you've just made a dependency on Outlook overkill. Finally you could..

Difference between Property and Field in C# 3.0+

http://stackoverflow.com/questions/653536/difference-between-property-and-field-in-c-sharp-3-0

this question Encapsulation. In the second instance you've just defined a variable in the first there is a getter setter..

When should I use double instead of decimal?

http://stackoverflow.com/questions/803225/when-should-i-use-double-instead-of-decimal

floating point share improve this question I think you've summarised the advantages quite well. You are however missing..

What does the [Flags] Enum Attribute mean in C#?

http://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c

Green 00000010 Red 00000100 Blue 00001000 Likewise after you've set your property AllowedColors to Red Green and Blue which..

C# Finalize/Dispose pattern

http://stackoverflow.com/questions/898828/c-sharp-finalize-dispose-pattern

some unmanaged resources that should be got rid of when you've finished using the class. The actual resources are encapsulated..

DDD Approach to Access External Information

http://stackoverflow.com/questions/11241541/ddd-approach-to-access-external-information

should only accept the ID parameter and not a lambda Func. You've indicated by the name FindById how the search will be performed...

Unzipping a .gz file using C#

http://stackoverflow.com/questions/1348198/unzipping-a-gz-file-using-c-sharp

that your files are tarred first before being gzipped. You've asked for code so here's a sample assuming you have a single.. uncompressed.Flush uncompressed.Close stream.Dispose Edit You've changed your question so that the file is a tar.gz file technically..

Options for embedding Chromium instead of IE WebBrowser control with WPF/C#

http://stackoverflow.com/questions/18119125/options-for-embedding-chromium-instead-of-ie-webbrowser-control-with-wpf-c

control chromium embedded share improve this question You've already listed the most notable solutions for embedding Chromium..

Using lock statement within a loop in C#

http://stackoverflow.com/questions/2113261/using-lock-statement-within-a-loop-in-c-sharp

to D from U to W doesn't actually make the problem easier. You've said that you don't want to use double checked locking. You.. case what are you going to do when the timeout times out You've got something that is dangerous or impossible to shut down and..

How to fix the flickering in User controls

http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls

buffering can solve. Nor BeginUpdate or SuspendLayout. You've got too many controls the BackgroundImage can make it a lot..

Calculate the display width of a string in C#?

http://stackoverflow.com/questions/263614/calculate-the-display-width-of-a-string-in-c

string in C# .net c# .net share improve this question You've got the same problem in this question as was present in the..

use of tilde (~) in asp.net path

http://stackoverflow.com/questions/3077558/use-of-tilde-in-asp-net-path

You are correct it only works in server controls. You've got two basic options Change to HyperLink asp HyperLink NavigateUrl..

What are reasons why one would want to use nested classes? [duplicate]

http://stackoverflow.com/questions/3300051/what-are-reasons-why-one-would-want-to-use-nested-classes

efficient c# nested class share improve this question You've answered your own question. Use nested classes when you need..

Is it bad practice to return from within a try catch finally block?

http://stackoverflow.com/questions/449099/is-it-bad-practice-to-return-from-within-a-try-catch-finally-block

happens if the finally throws an exception of it's own You've got a returned variable but also an exception to deal with.....

Why can struct change their own fields?

http://stackoverflow.com/questions/4720475/why-can-struct-change-their-own-fields

not a variable c# struct share improve this question You've made a key mistaken assumption. .NET structs are mutable. You..

Facebook/ Twitter with dotnetopenauth? [closed]

http://stackoverflow.com/questions/4821747/facebook-twitter-with-dotnetopenauth

log in. If you get errors then you need to make sure that You've manually changed the Facebook app settings in your web.config.. changed the Facebook app settings in your web.config file. You've correctly setup your app settings in the Facebook developer..

Why it is not posible to define generic indexers in .NET?

http://stackoverflow.com/questions/494827/why-it-is-not-posible-to-define-generic-indexers-in-net

int timeout But this doesn't actually buy you anything. You've just replaced round parens as in int settings timeout with angle..

Hide c# windows application source code

http://stackoverflow.com/questions/545767/hide-c-sharp-windows-application-source-code

with a code obfuscator. There are many in the marketplace. You've already done this with dotfuscator however you say that it only..

How can I make my own event in C#?

http://stackoverflow.com/questions/623451/how-can-i-make-my-own-event-in-c

null. if OnMaximum null OnMaximum this new MyEventArgs You've entered value.ToString but the maximum is Maximum.ToString..

The call stack does not say “where you came from”, but “where you are going next”?

http://stackoverflow.com/questions/6595473/the-call-stack-does-not-say-where-you-came-from-but-where-you-are-going-next

works. c# .net callstack share improve this question You've explained it yourself. The return address by definition tells..

How to parse a text file in C# and be io bound?

http://stackoverflow.com/questions/7153315/how-to-parse-a-text-file-in-c-sharp-and-be-io-bound

need to find out how long does it take to read the file. You've done that. On my machine your test is running at about 220ms..

Casting a result to float in method returning float changes result

http://stackoverflow.com/questions/8795550/casting-a-result-to-float-in-method-returning-float-changes-result

of the runtime and every version of the C# compiler. You've just happened to run across a case where on your machine they..

C# - How to access internal class from external assembly

http://stackoverflow.com/questions/920844/c-sharp-how-to-access-internal-class-from-external-assembly

treated as an opaque object for their purposes not yours . You've described it as a public instance field to get this via reflection..