¡@

Home 

c# Programming Glossary: you're

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

and Deserializing JSON with Json.NET Now the reason you're getting a StackOverflow is because of your Properties . Take.. and set the value of that field in the setter. Btw if you're using the 3.5 Framework you can just do this and avoid the backing..

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

days. Code repetition is the worst thing you can do when you're trying to build a maintainable application Agreed which is why.. 'pushed changes' affect the code and not the database. If you're pushing 20 things to the webservers that month and 1 to the.. sense to break everything down into a million tiers if you're trying to justify to your CEO why it just cost them 7 million..

How to properly clean up Excel interop objects

http://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects

app is still holding references to COM objects. I guess you're invoking at least one member of a COM object without assigning..

String vs string in C# [duplicate]

http://stackoverflow.com/questions/215255/string-vs-string-in-c-sharp

I think it's generally recommended to use string any time you're referring to an object. e.g. string place world Likewise I think..

How to enable assembly bind failure logging (Fusion) in .NET

http://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-failure-logging-fusion-in-net

the Folder exists . You need to restart the program that you're running to force it to read those registry settings. share..

Casting vs using the 'as' keyword in the CLR

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

the type check easy because it's for a sealed class if you're checking for an interface the balance tips slightly in favour..

Proper use of the IDisposable interface

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

available to you in the .NET Framwork is unmanaged and you're now responsible for cleaning it up. The object that you've created.. this.gdiCursorBitmapStreamFileHandle And you're done. Except you can do better. What if your object has allocated.. possible that in your Dispose code the managed object you're trying to get rid of because you wanted to be helpful is no..

How does one parse XML files? [closed]

http://stackoverflow.com/questions/55828/how-does-one-parse-xml-files

What's the difference between String and string?

http://stackoverflow.com/questions/7074/whats-the-difference-between-string-and-string

I think it's generally recommended to use string any time you're referring to an object. e.g. string place world Likewise I think..

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

foreach string s in strings var finalString s won't work you're outside the scope. So the compiler declares the variable in..

C# Finalize/Dispose pattern

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

m_Handle base.Dispose disposing ~C Dispose false If you're not using unmanaged resources directly SafeHandle and friends..

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

must be openend to the DBMS what is very expensive. So you're gaining no performance improvement but the opposite. If the.. and without using Transactions a data dumping area. If you're even using static connections you're creating a lock for every.. data dumping area. If you're even using static connections you're creating a lock for every thread trying to access this object...

c# random string generator

http://stackoverflow.com/questions/1122483/c-sharp-random-string-generator

strings Thanks c# random share improve this question You're making the Random instance in the method which causes it to..

Are Timers and Loops in .Net accurate?

http://stackoverflow.com/questions/11531128/are-timers-and-loops-in-net-accurate

JIT'ed code on a non RTOS real time operating system . You're code can get bounced at any time if the OS feels like it. What.. it. You haven't even shown us the timer's interval. You're failing to consider many variables here and you're basing your..

Using global keyboard hook (WH_KEYBOARD_LL) in WPF / C#

http://stackoverflow.com/questions/1639331/using-global-keyboard-hook-wh-keyboard-ll-in-wpf-c-sharp

code above. c# wpf winapi share improve this question You're creating your callback delegate inline in the SetHook method..

Compare two DataTables to determine rows in one but not the other

http://stackoverflow.com/questions/164144/compare-two-datatables-to-determine-rows-in-one-but-not-the-other

if the ID or hashcode etc is present in the dictionary. You're exploiting the fact that dictionaries have really fast O 1 I..

No generic implementation of OrderedDictionary?

http://stackoverflow.com/questions/2629027/no-generic-implementation-of-ordereddictionary

.net 4.0 ordereddictionary share improve this question You're right. There's no generic equivalent of OrderedDictionary in..

Linq query built in foreach loop always takes parameter value from last iteration

http://stackoverflow.com/questions/295593/linq-query-built-in-foreach-loop-always-takes-parameter-value-from-last-iteratio

am I doing wrong c# linq share improve this question You're reusing the same variable key in your lambda expression. See..

Why can't yield return appear inside a try block with a catch?

http://stackoverflow.com/questions/346365/why-cant-yield-return-appear-inside-a-try-block-with-a-catch

and then you're just setting a field and returning true You're allowed try catch which doesn't use yield return in an iterator..

What is the difference between an abstract function and a virtual function?

http://stackoverflow.com/questions/391483/what-is-the-difference-between-an-abstract-function-and-a-virtual-function

question An abstract function can have no functionality. You're basically saying any child class MUST give their own version..

Is this thread.abort() normal and safe?

http://stackoverflow.com/questions/421389/is-this-thread-abort-normal-and-safe

anyway. Regarding your updated Abort free code You're now launching a new thread for potentially every keypress ...

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

process process.start share improve this question You're adding descriptions of the problem in the comments as you go..

Show Console in Windows Application?

http://stackoverflow.com/questions/472282/show-console-in-windows-application

UIs' one for the GUI and one for the command shell. You're going to have to build some strange central logic engine that..

Is BCrypt a good hashing algorithm to use in C#? Where can I find it?

http://stackoverflow.com/questions/481160/is-bcrypt-a-good-hashing-algorithm-to-use-in-c-where-can-i-find-it

of hashing Jeff Atwood I just logged in as you Jeff Atwood You're probably storing passwords incorrectly Jeff Atwood Speed Hashing..

When is optimization premature? [closed]

http://stackoverflow.com/questions/4832642/when-is-optimization-premature

pop into your brain since all it'll do is waste your time. You're doing something time critical in something other than assembly..

How do I use WebRequest to access an SSL encrypted site using https?

http://stackoverflow.com/questions/560804/how-do-i-use-webrequest-to-access-an-ssl-encrypted-site-using-https

Thanks. c# webrequest share improve this question You're doing it the correct way but users may be providing urls to..

Fixed point math in c#?

http://stackoverflow.com/questions/605124/fixed-point-math-in-c

multiplied by whatever your new SHIFT AMOUNT requires. You're likely to run into some bugs if you do that and aren't careful..

The purpose of delegates [duplicate]

http://stackoverflow.com/questions/687626/the-purpose-of-delegates

c# .net delegates share improve this question Yeah You're almost there. A delegate refers to a method or function to be..

Injecting dependencies into ASP.NET MVC 3 action filters. What's wrong with this approach?

http://stackoverflow.com/questions/7192543/injecting-dependencies-into-asp-net-mvc-3-action-filters-whats-wrong-with-this

at test time and inject a mock service that way. You're not tied down to any implementation of DI container since you're..

What are some popular OCR algorithms?

http://stackoverflow.com/questions/850717/what-are-some-popular-ocr-algorithms

a distance metric that is was used in digit recognition. You're going to need some data to play with so instead of writing the..

Use own IComparer<T> with Linq OrderBy

http://stackoverflow.com/questions/985657/use-own-icomparert-with-linq-orderby

improve this question Your comparer looks wrong to me. You're still just sorting in the default text ordering. Surely you..