¡@

Home 

c# Programming Glossary: consider

Which ORM for .NET would you recommend? [closed]

http://stackoverflow.com/questions/132676/which-orm-for-net-would-you-recommend

on this Does using one make sense Which ones should I consider trying c# .net orm share improve this question NHibernate..

What's wrong with using Thread.Abort()

http://stackoverflow.com/questions/1559255/whats-wrong-with-using-thread-abort

be avoided at all costs the only time you should ever even consider aborting a thread is in some sort of emergency shutdown code..

What NoSQL solutions are out there for .NET? [closed]

http://stackoverflow.com/questions/1777103/what-nosql-solutions-are-out-there-for-net

.net nosql share improve this question You also should consider using Redis . It's an advanced NoSQL database with support for..

Multiple Inheritance in C#

http://stackoverflow.com/questions/178333/multiple-inheritance-in-c-sharp

one of the interfaces. EDIT Maybe it would be better to consider a practical example You have an existing class e.g. a text based..

Dependency Inject (DI) “friendly” library

http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library

Facade with a high degree of discoverability you could consider providing Fluent Builders. Something like this public class..

Getting the size of a field in bytes with C#

http://stackoverflow.com/questions/207592/getting-the-size-of-a-field-in-bytes-with-c-sharp

Just to clarify what I mean about padding being relevant consider these two classes class FourBytes byte a b c d class FiveBytes..

Throwing Exceptions best practices

http://stackoverflow.com/questions/22623/throwing-exceptions-best-practices

Exceptions best practices What are the best practices to consider when catching exceptions and re throwing them I want to make..

FileSystemWatcher vs polling to watch for file changes

http://stackoverflow.com/questions/239988/filesystemwatcher-vs-polling-to-watch-for-file-changes

watcher fail in production and test environments. I now consider it a convenience but I do not consider it reliable. My pattern.. environments. I now consider it a convenience but I do not consider it reliable. My pattern has been to watch for changes with the..

How to avoid Dependency Injection constructor madness?

http://stackoverflow.com/questions/2420193/how-to-avoid-dependency-injection-constructor-madness

or less a glorified static factory. For lots of reasons I consider this an anti pattern . One of the wonderful benefits of Constructor..

Best Practice: Initialize class fields in constructor or at declaration?

http://stackoverflow.com/questions/24551/best-practice-initialize-class-fields-in-constructor-or-at-declaration

in C# and Java recently and I am curious what people would consider the best practice concerning when you should initialize your..

Natural Sort Order in C#

http://stackoverflow.com/questions/248603/natural-sort-order-in-c-sharp

that it differs between versions of Windows so you need to consider whether this is a problem for you. So a complete implementation..

Why is lock(this) {…} bad?

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

plan parallel operations special care should be taken to consider possible deadlock situations and having an unknown number of..

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

So if you are writing a 100MB xml file from csv you might consider XmlWriter this is more primative a write once firehose but very..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

hash code for two items does not match they may never be considered equal Equals will simply never be called . The GetHashCode.. ... return hash Oh for convenience you might also consider providing and operators when overriding Equals and GethashCode..

How to convert an IPv4 address into a integer in C#?

http://stackoverflow.com/questions/461742/how-to-convert-an-ipv4-address-into-a-integer-in-c

to the standard integer format. To do so you have to consider the endian ness of the machine you're running on. share improve..

Remove duplicates from a List<T> in C#

http://stackoverflow.com/questions/47752/remove-duplicates-from-a-listt-in-c-sharp

Protect .NET code from reverse engineering?

http://stackoverflow.com/questions/506282/protect-net-code-from-reverse-engineering

packer . If the third party packers are too expensive consider writing your own. Sometimes custom packers can be very effective..

Properties vs Methods

http://stackoverflow.com/questions/601621/properties-vs-methods

effects. When it does not violate the following guidelines consider using a property rather than a method because less experienced..

Prevent multiple instances of a given app in .NET?

http://stackoverflow.com/questions/93989/prevent-multiple-instances-of-a-given-app-in-net

there's no best technique what are some of the caveats to consider with each solution c# .net share improve this question Use..

How to wait for a BackgroundWorker to cancel?

http://stackoverflow.com/questions/123661/how-to-wait-for-a-backgroundworker-to-cancel

to wait for a BackgroundWorker to cancel Consider a hypothetical method of an object that does stuff for you public..

Direct casting vs 'as' operator?

http://stackoverflow.com/questions/132445/direct-casting-vs-as-operator

casting vs 'as' operator Consider the following code void Handler object o EventArgs e I swear..

Reducing memory usage of .NET applications?

http://stackoverflow.com/questions/1343374/reducing-memory-usage-of-net-applications

some tips to reduce the memory usage of .NET applications Consider the following simple C# program. class Program static void Main..

Using IoC for Unit Testing

http://stackoverflow.com/questions/1465849/using-ioc-for-unit-testing

unit testing is all about separating responsibilities. Consider a class that uses Constructor Injection public MyClass IMyDependency..

Understanding Garbage Collection in .net

http://stackoverflow.com/questions/17130382/understanding-garbage-collection-in-net

Garbage Collection in .net Consider the below code public class Class1 public static int c ~Class1..

What's the point of the var keyword?

http://stackoverflow.com/questions/209199/whats-the-point-of-the-var-keyword

either unknown to the programmer or is extremely verbose. Consider SomeGeneric VeryLongTypename NestedTypename thing new SomeGeneric..

Difference between Covariance & Contra-variance

http://stackoverflow.com/questions/2184551/difference-between-covariance-contra-variance

contravariance are properties of mappings between sets . Consider the following two sets of types Animal Tiger Fruit Banana ...

How to use reflection to call generic Method?

http://stackoverflow.com/questions/232535/how-to-use-reflection-to-call-generic-method

time but instead is obtained dynamically at runtime Consider the following sample code inside the Example method what's the..

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

for using interfaces but it's easy with a delegate. Consider Action T that just represents a method which takes a T parameter...

Why isn't there generic variance for classes in C# 4.0?

http://stackoverflow.com/questions/2733346/why-isnt-there-generic-variance-for-classes-in-c-sharp-4-0

above asked for an example of where this would be useful. Consider the following sketch sealed class Stack out T private readonly..

IEnumerable vs List - What to Use? How do they work?

http://stackoverflow.com/questions/3628425/ienumerable-vs-list-what-to-use-how-do-they-work

I have some doubts over how Enumerators work and LINQ. Consider these two simple selects List Animal sel from animal in Animals.. the SQL to query the database until you enumerate it Consider this public IEnumerable Animals AllSpotted return from a in..

Proper Use of yield return

http://stackoverflow.com/questions/410026/proper-use-of-yield-return

is if the IEnumerable represents an infinite set. Consider the list of Prime Numbers or an infinite list of random numbers...

How can I create a Product Key for my C# App

http://stackoverflow.com/questions/453030/how-can-i-create-a-product-key-for-my-c-sharp-app

apply though people can get round anything like this. Consider also the support costs of having to deal with users who have..

VS2010 does not show unhandled exception message in a WinForms Application on a 64-bit version of Windows

http://stackoverflow.com/questions/4933958/vs2010-does-not-show-unhandled-exception-message-in-a-winforms-application-on-a

hard to debug the ThreadException event is pretty useless. Consider if your code really belongs in the Load event handler. It is..

When to use struct in C#?

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

extra learning from Microsoft and here is what I found Consider defining a structure instead of a class if instances of the..

What is the difference between const and readonly?

http://stackoverflow.com/questions/55984/what-is-the-difference-between-const-and-readonly

notation to access them. There is a subtle difference. Consider a class defined in AssemblyA. public class Const_V_Readonly..

Binding WPF ComboBox to a Custom List

http://stackoverflow.com/questions/561166/binding-wpf-combobox-to-a-custom-list

but advanced features may encounter known bugs. Consider using a derived class to avoid these problems. share improve..

What is differences between Multidimensional array and Array of Arrays in C#?

http://stackoverflow.com/questions/597720/what-is-differences-between-multidimensional-array-and-array-of-arrays-in-c

arrays are method invocations which are always slower. Consider the following methods static void SetElementAt int array int..

What is the difference between Decimal, Float and Double in C#?

http://stackoverflow.com/questions/618535/what-is-the-difference-between-decimal-float-and-double-in-c

are the most obvious example but there are others too. Consider the score given to divers or ice skaters for example. For values..