¡@

Home 

c# Programming Glossary: unless

Excel “External table is not in the expected format.”

http://stackoverflow.com/questions/1139390/excel-external-table-is-not-in-the-expected-format

get an External table is not in the expected format. error unless I have the file already open in Excel. In other words I have..

How slow are .NET exceptions?

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

by exceptions. Basically exceptions shouldn't happen often unless you've got significant correctness issues and if you've got..

Method can be made static, but should it?

http://stackoverflow.com/questions/169378/method-can-be-made-static-but-should-it

Utility Class You shouldn't move them to a utility class unless it makes sense in your design. If the static method relates..

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

a wee bit slower than Int32.Parse though in practice unless you're doing a very large numbers of iterations in a loop you'll..

Conditional operator cannot cast implicitly?

http://stackoverflow.com/questions/2215745/conditional-operator-cannot-cast-implicitly

the conditional expression is int and it is not a constant unless the condition expression is constant true or constant false..

Why .NET String is immutable? [duplicate]

http://stackoverflow.com/questions/2365272/why-net-string-is-immutable

from passing an immutable type as a method to a parameter unless it is out or ref since that changes the reference not the object..

Why is lock(this) {…} bad?

http://stackoverflow.com/questions/251391/why-is-lockthis-bad

also not clear that you will be acquiring a lock on this unless it has been documented. Even then relying on documentation to..

how can you easily check if access is denied for a file in .NET?

http://stackoverflow.com/questions/265953/how-can-you-easily-check-if-access-is-denied-for-a-file-in-net

to open it I do not want to use a try catch for this check unless I have to. Is there a file access property I can check before..

What is the best way to build XML in C# code? [closed]

http://stackoverflow.com/questions/284324/what-is-the-best-way-to-build-xml-in-c-sharp-code

types everything must have a public getter and setter unless you do it all yourself by implementing IXmlSerializable in which..

Differences in string compare methods in C#

http://stackoverflow.com/questions/44288/differences-in-string-compare-methods-in-c-sharp

otherStringValue null is not considered equal to anything unless you specify a StringComparison option it will use what looks..

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

question Reading text files backwards is really tricky unless you're using a fixed size encoding e.g. ASCII . When you've..

Casting vs using the 'as' keyword in the CLR

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

fast. This simply will not be the bottleneck in your code unless you really aren't going to do anything with the values afterwards...

Cross-thread operation not valid [duplicate]

http://stackoverflow.com/questions/5037470/cross-thread-operation-not-valid

really care about anything fancy or over complicated atm unless it'll make things much easier when working with the UI in a..

When to use struct in C#?

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

embedded in other objects. Do not define a structure unless the type has all of the following characteristics It logically.. to use The struct must perform its function efficiently unless this would violate rule #1 The struct must remain intact during.. rule #1 The struct must remain intact during its use unless its destruction is required to satisfy rule #1 ... what do we..

How to handle WndProc messages in WPF?

http://stackoverflow.com/questions/624367/how-to-handle-wndproc-messages-in-wpf

to handle Windows Messaging messages in a WPF application unless it's the most obvious form of interop for working with another..

When should I use double instead of decimal?

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

is when considering which to use always use double unless you need the base 10 accuracy that decimal offers. Edit Regarding..

C# Finalize/Dispose pattern

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

is called. So you shouldn't declare a finalizer unless you have to but you give inheritors of your class a hook to..

Difference Between Equals and ==

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

call the virtual Equals equals method declared by Object unless a more specific overload has been introduced by the compile..

Priority queue in .Net [closed]

http://stackoverflow.com/questions/102398/priority-queue-in-net

preferably C# implementation of a priority queue or heap. Unless I am looking in the wrong place there isn't one in the framework...

C# - indexOf the nth occurrence of a string?

http://stackoverflow.com/questions/186653/c-sharp-indexof-the-nth-occurrence-of-a-string

indexOf the nth occurrence of a string Unless I am missing an obvious built in method what is the quickest..

avoiding null reference exceptions

http://stackoverflow.com/questions/1943465/avoiding-null-reference-exceptions

techniques to avoid encountering null reference errors Unless I am mistaken I am aware that in languages such as F# is it..

How do I use LINQ Contains(string[]) instead of Contains(string)

http://stackoverflow.com/questions/194930/how-do-i-use-linq-containsstring-instead-of-containsstring

the extension method the sense of it would be wrong. EDIT Unless you changed it around and wrote it for string as Mitch Wheat..

Why does one often see “null != variable” instead of “variable != null” in C#?

http://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c

will result in invalid code. Now in C# this is all piffle. Unless you're comparing two Boolean values which is rare IME you can..

Under what circumstances is an SqlConnection automatically enlisted in an ambient TransactionScope Transaction?

http://stackoverflow.com/questions/2884863/under-what-circumstances-is-an-sqlconnection-automatically-enlisted-in-an-ambien

enlisted in a newly created transaction scope. Q5. No. Unless you open a connection in the transaction scope or enlist an..

When is using the C# ref keyword ever a good idea?

http://stackoverflow.com/questions/3539252/when-is-using-the-c-sharp-ref-keyword-ever-a-good-idea

code that actually needed a swap method since college. Unless you've got a very good reason avoid out and ref altogether...

PInvoke for C function that returns char *

http://stackoverflow.com/questions/370079/pinvoke-for-c-function-that-returns-char

and then call CoTaskMemFree on the native memory blob. Unless you actually allocated this memory with CoTaskMemAlloc this..

How do I implement automatic sorting of DataGridView?

http://stackoverflow.com/questions/3770857/how-do-i-implement-automatic-sorting-of-datagridview

the automatic way should be easy. MSDN goes on to say Unless column headers are used for selection clicking the column header..

Why are extension methods only allowed in non-nested, non-generic static class?

http://stackoverflow.com/questions/3930335/why-are-extension-methods-only-allowed-in-non-nested-non-generic-static-class

extension methods be allowed in nested or generic classes Unless the feature is justified by some real world user need we're..

ASCIIEncoding In Windows Phone 7

http://stackoverflow.com/questions/4022281/asciiencoding-in-windows-phone-7

7 Is there a way to use ASCIIEncoding in Windows Phone 7 Unless I'm doing something wrong Encoding.ASCII doesn't exist and I'm..

Deep copy of List<T>

http://stackoverflow.com/questions/4226747/deep-copy-of-listt

in trick or framework method to make it easier than that. Unless memory and performance are a real concern I suggest that you..

Scripting language for embedding into C#/.NET applications? [closed]

http://stackoverflow.com/questions/462311/scripting-language-for-embedding-into-c-net-applications

be a language that is most easily adapted to by the users. Unless they accept it and are able to be more productive than they..

Is the ++ operator thread safe? [duplicate]

http://stackoverflow.com/questions/4628243/is-the-operator-thread-safe

both threads would only increment i once instead of twice. Unless the whole thing is in a lock . c# multithreading share improve..

WebMatrix WebSecurity PasswordSalt

http://stackoverflow.com/questions/5117464/webmatrix-websecurity-passwordsalt

How to execute an .SQL script file using c#

http://stackoverflow.com/questions/650098/how-to-execute-an-sql-script-file-using-c-sharp

p.Start p.WaitForExit WaitForExit never returns .... Unless I set UseShellExecute to true. A side effect of UseShellExecute..

Is String.Format as efficient as StringBuilder

http://stackoverflow.com/questions/6785/is-string-format-as-efficient-as-stringbuilder

being called when a user clicks a button now and again. Unless you're doing some huge batch processing job I'd stick with String.Format..

Understanding Data Outside Of Service : SOA

http://stackoverflow.com/questions/9483286/understanding-data-outside-of-service-soa

implies the data for any given snapshot time is immutable. Unless you go back and fill in old orders then the last person to buy..

Convert json to a C# array?

http://stackoverflow.com/questions/9586585/convert-json-to-a-c-sharp-array

code above was not tested but that's the idea Tested it. Unless you are doing something exotic you should be fine using the..

Difference Between Equals and ==

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

any user defined operator overloading. In C# it depends. Unless there's an overloaded operator which handles it will behave..