¡@

Home 

c# Programming Glossary: safety

How to make Databinding type safe and support refactoring

http://stackoverflow.com/questions/1329138/how-to-make-databinding-type-safe-and-support-refactoring

XML rather then C# c# .net data binding refactoring type safety share improve this question Thanks to Oliver for getting..

What's the best way of implementing a thread-safe Dictionary?

http://stackoverflow.com/questions/157933/whats-the-best-way-of-implementing-a-thread-safe-dictionary

of implementing a thread safe Dictionary c# .net thread safety collections share improve this question As Peter said you.. As Peter said you can encapsulate all of the thread safety inside the class. You will need to be careful with any events..

Is it abusive to use IDisposable and “using” as a means for getting “scoped behavior” for exception safety?

http://stackoverflow.com/questions/2101524/is-it-abusive-to-use-idisposable-and-using-as-a-means-for-getting-scoped-beha

for getting &ldquo scoped behavior&rdquo for exception safety Something I often used back in C was letting a class A handle..

Generics in C#, using type of a variable as parameter

http://stackoverflow.com/questions/2107845/generics-in-c-using-type-of-a-variable-as-parameter

The point about generics is to give compile time type safety which means that types need to be known at compile time. You..

Automating the InvokeRequired code pattern

http://stackoverflow.com/questions/2367718/automating-the-invokerequired-code-pattern

out any shortcuts c# multithreading winforms thread safety invokerequired share improve this question Lee's approach..

How is Generic Covariance & Contra-variance Implemented in C# 4.0?

http://stackoverflow.com/questions/245607/how-is-generic-covariance-contra-variance-implemented-in-c-sharp-4-0

will become IEnumerable out T . That doesn't hurt type safety at all but lets you return an IEnumerable string from a method..

Why is Dictionary preferred over hashtable?

http://stackoverflow.com/questions/301371/why-is-dictionary-preferred-over-hashtable

a generic type Hashtable is not. That means you get type safety with Dictionary because you can't insert any random object into..

Collection was modified; enumeration operation may not execute

http://stackoverflow.com/questions/604831/collection-was-modified-enumeration-operation-may-not-execute

Error e.Message c# wcf concurrency dictionary thread safety share improve this question What's likely happening is that..

Why are unsigned int's not CLS compliant?

http://stackoverflow.com/questions/6325/why-are-unsigned-ints-not-cls-compliant

that makes it impossible to rapidly verify the type safety of code was excluded from the CLS so that all CLS compliant.. back and whilst I can't see why a UInt wouldn't be type safety verifiable I guess the CLS guys had to have a cut off point..

In C#, why can't a List<string> object be stored in a List<object> variable

http://stackoverflow.com/questions/6557/in-c-why-cant-a-liststring-object-be-stored-in-a-listobject-variable

convoluted solution. c# .net generics covariance type safety share improve this question Think of it this way if you were..

Random number generator only generating one random number

http://stackoverflow.com/questions/767999/random-number-generator-only-generating-one-random-number

though since Random does not make any guarantees of thread safety. Thus there are two valid approaches synchronize so that we..

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

a good idea in terms of peformance nor in terms of fail safety. Don't poach on the Connection Pool's territory There's a good..

Seeking clarification on apparent contradictions regarding weakly typed languages

http://stackoverflow.com/questions/9929585/seeking-clarification-on-apparent-contradictions-regarding-weakly-typed-language

typed you should describe in detail what kind of type safety you mean. For example C# is a statically typed language and.. runtime will throw an exception in order to protect type safety. If the developer wishes to break type safety or memory safety.. protect type safety. If the developer wishes to break type safety or memory safety they can do so by turning off the type safety..