¡@

Home 

c# Programming Glossary: know

Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on

http://stackoverflow.com/questions/142003/cross-thread-operation-not-valid-control-accessed-from-a-thread-other-than-the

from a thread other than the thread it was created on. To know more about this I did some googling and a suggestion came up.. parent thread and not the third that I spawned. I don't know whether I perceived this right or wrong. I'm new to threading...

How to properly clean up Excel interop objects

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

... ... Marshal.ReleaseComObject sheet What I didn't know was that internally C# created a wrapper for the Worksheets.. in C# Never use 2 dots with com objects. So with this knowledge the right way of doing the above is Worksheets sheets excelApp.Worksheets..

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

have to mess around with public private keys etc. I don't know much about encryption but I do enough to know that anything.. etc. I don't know much about encryption but I do enough to know that anything I wrote would be less than worthless...in fact..

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

an application that can only be run as a single instance I know it has something to do with some mythical thing called a mutex..

Case insensitive 'Contains(string)'

http://stackoverflow.com/questions/444798/case-insensitive-containsstring

these two strings the same but in different cases' if you know what language the text is in . If you don't know you'll have.. if you know what language the text is in . If you don't know you'll have to take a punt. Given English's hegemony in software..

Casting vs using the 'as' keyword in the CLR

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

lot of casting or object type conversion. What I'd like to know is if there is a difference between these two methods of conversion.. really don't need the converted value but you just need to know whether it is an instance of TargetType then the is operator.. involving generics where is is useful because you may not know whether T is a reference type or not so you can't use as but..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

And ... 4. Both structs store TKey and TValue which we all know are quite capable of being reference types added bonus info..

Proper use of the IDisposable interface

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

use of the IDisposable interface I know from reading the MSDN documentation that the primary use of.. will never be cleaned up. The garbage collector doesn't know how to call DeleteHandle on a variable of type IntPtr it doesn't.. call DeleteHandle on a variable of type IntPtr it doesn't know whether or not it needs to call DeleteHandle . Note What is..

Difference between Property and Field in C# 3.0+

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

I probably didn't explain what I meant very well. Once i know i don't want to use my class with techniques that only works..

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

garbage because the files where created in a different unknown codepage. Is there a way to automatically detect the codepage.. The receivers are also end users by now this is what they know about codepages Codepages exist and are annoying. Solution Open.. can use to open the file with and enter a text that user knows it will appear in the file when the correct codepage is used...

Algorithm to avoid SQL injection on MSSQL Server from C# code?

http://stackoverflow.com/questions/249567/algorithm-to-avoid-sql-injection-on-mssql-server-from-c-sharp-code

improve usability but don't rely on it as the sole guard. Know how validators provided by APIs like NET work. Don't take them..

Lock-free multi-threading is for real threading experts

http://stackoverflow.com/questions/2528969/lock-free-multi-threading-is-for-real-threading-experts

oldie but goldie from Vance Morrison What Every Dev Must Know About Multithreaded Apps . ...and of course as @Eric mentioned..

Beginners book for .NET and C#? [closed]

http://stackoverflow.com/questions/2994959/beginners-book-for-net-and-c

C# .NET Book Zero What the C or C Programmer Needs to Know About C# and the .NET Framework Data Structures and Algorithms..

How To Represent 0.1 In Floating Point Arithmetic And Decimal

http://stackoverflow.com/questions/3448777/how-to-represent-0-1-in-floating-point-arithmetic-and-decimal

seen a few links to 'What Every Computer Scientist Should Know About Floating Point Arithmetic' I still don't understand how..

What's the difference between UTF8/UTF16 and Base64 in terms of encoding

http://stackoverflow.com/questions/3866316/whats-the-difference-between-utf8-utf16-and-base64-in-terms-of-encoding

Every Software Developer Absolutely Positively Must Know About Unicode and Character Sets No Excuses Base64 is a method..

Understanding floating point problems

http://stackoverflow.com/questions/4664662/understanding-floating-point-problems

Start by reading What Every Computer Scientist Should Know About Floating Point http docs.sun.com source 806 3568 ncg_goldberg.html..

How do you know what to test when writing unit tests?

http://stackoverflow.com/questions/62625/how-do-you-know-what-to-test-when-writing-unit-tests

I have got some good feedback on that. Namely I Don ™t Know Where to Start Start afresh. Only think about writing tests..

When should I use double instead of decimal?

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

oft quoted article What Every Computer Scientist Should Know About Floating Point Arithmetic . share improve this answer..

What is better? Static methods OR Instance methods

http://stackoverflow.com/questions/874363/what-is-better-static-methods-or-instance-methods

case. Jan Gray's great article Writing faster managed code Know what things cost has some hard data on this albeit to be taken..

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

Every Software Developer Absolutely Positively Must Know About Unicode and Character Sets No Excuses . Specifically Joel..