¡@

Home 

c# Programming Glossary: imo

LINQ: How to perform .Max() on a property of all objects in a collection and return the object with maximum value

http://stackoverflow.com/questions/1101841/linq-how-to-perform-max-on-a-property-of-all-objects-in-a-collection-and-ret

like var item items.MaxBy x x.Height This is better IMO than any of the solutions presented here other than Mehrdad's..

How do arrays in C# partially implement IList<T>?

http://stackoverflow.com/questions/11163297/how-do-arrays-in-c-sharp-partially-implement-ilistt

due to array covariance which is a wart in the type system IMO. Even though IList T is not covariant and can't be safely array..

Refactoring code to avoid anti-pattern

http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern

Domain object pattern. However it's certainly bad practice IMO because your BankAccount domain object mixes 3 responsibilities..

What strategies and tools are useful for finding memory leaks in .NET?

http://stackoverflow.com/questions/134086/what-strategies-and-tools-are-useful-for-finding-memory-leaks-in-net

on at least one occasion. The GC works very well in .NET IMO but just like any other language or platform if you write bad..

Passing a single item as IEnumerable<T>

http://stackoverflow.com/questions/1577822/passing-a-single-item-as-ienumerablet

question Your helper method is the cleanest way to do it IMO. If you pass in a list or an array then an unscrupulous piece..

Overhead of a .NET array?

http://stackoverflow.com/questions/1589669/overhead-of-a-net-array

share improve this question Here's a slightly neater IMO short but complete program to demonstrate the same thing using..

Why is this code invalid in C#?

http://stackoverflow.com/questions/202271/why-is-this-code-invalid-in-c

may be more irritating occasionally but it's clearer IMO. The relevant section of the C# 3.0 spec is 7.13 the conditional..

Can I initialize a C# attribute with an array or other variable number of arguments

http://stackoverflow.com/questions/270187/can-i-initialize-a-c-sharp-attribute-with-an-array-or-other-variable-number-of-a

can also use params instead which is nicer to consumers IMO class MyCustomAttribute Attribute public int Values get set..

Discriminated union in C#

http://stackoverflow.com/questions/3151702/discriminated-union-in-c-sharp

like this to be a compile error char c ValueA.As char IMO It is not valid to ask ValueA if it is a char since its definition..

How to do joins in LINQ on multiple fields in single join

http://stackoverflow.com/questions/373541/how-to-do-joins-in-linq-on-multiple-fields-in-single-join

handled with a where clause after a second from clause IMO. You could do some particularly funky magic by ordering one..

GetMethod for generic method [duplicate]

http://stackoverflow.com/questions/4035719/getmethod-for-generic-method

to follow as the original code which is often NOT the case IMO. If you love Linq and you must you can replace the inner most..

What's the best way to ensure a base class's static constructor is called?

http://stackoverflow.com/questions/4652454/whats-the-best-way-to-ensure-a-base-classs-static-constructor-is-called

they actually changed in subtle and interesting ways that IMO make most clever approaches brittle between CLR versions. An..

Validation: How to inject A Model State wrapper with Ninject?

http://stackoverflow.com/questions/4776396/validation-how-to-inject-a-model-state-wrapper-with-ninject

a different approach. First of all it would be much better IMO to let the service layer throw an exception when a validation..

C# naming convention for enum and matching property

http://stackoverflow.com/questions/495051/c-sharp-naming-convention-for-enum-and-matching-property

didn't get much visibility. EDIT Filip Ekberg suggests an IMO excellent workaround for the specific case of 'Status'. Yet..

Why array implements IList?

http://stackoverflow.com/questions/5968708/why-array-implements-ilist

even more than a constant sized with indexers interface. IMO there should be several more generic collection interfaces depending.. too List for something with an indexer is really stupid IMO. Just Enumeration IEnumerable T Readonly but no indexer .Count..

How and why do I set up a C# build machine?

http://stackoverflow.com/questions/616149/how-and-why-do-i-set-up-a-c-sharp-build-machine

then running a build. Nightly is ok but somewhat worthless IMO since what you've worked on yesterday wont be fresh in your..

Interface defining a constructor signature?

http://stackoverflow.com/questions/619856/interface-defining-a-constructor-signature

in generic type constraints but could be really handy IMO. One point about if you could define a constructor within an..

c# When should I use List and when should I use arraylist?

http://stackoverflow.com/questions/725459/c-sharp-when-should-i-use-list-and-when-should-i-use-arraylist

Foreach can throw an InvalidCastException?

http://stackoverflow.com/questions/949798/foreach-can-throw-an-invalidcastexception

in names string x string tmp ... The latter is just icky IMO. Providing an implicit cast is unlike the rest of the language..