¡@

Home 

c# Programming Glossary: consumers

MVVM: Binding to Model while keeping Model in sync with a server version

http://stackoverflow.com/questions/10437241/mvvm-binding-to-model-while-keeping-model-in-sync-with-a-server-version

component that sits between the data store and the consumers and handles all communication between them. Whenever a ViewModel..

XML serialization of interface property

http://stackoverflow.com/questions/1333864/xml-serialization-of-interface-property

Ugly unpleasant boiler plate and much repetition but most consumers of the class will not have to deal with the problem XmlIgnore.. In this way most of the grunt work is done for you but consumers of the class suffer no impact beyond confusion with introspection...

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

I then lock on this SyncRoot object throughout my consumers multiple threads Example lock m_MySharedDictionary.SyncRoot..

Dependency Inject (DI) “friendly” library

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

As such there will probably be classes intended for consumers to use directly on a regular basis and support classes that.. libraries StructureMap Ninject etc seems reasonable I want consumers to be able to use the library with any DI framework. Non DI..

Class with single method — best approach?

http://stackoverflow.com/questions/205689/class-with-single-method-best-approach

likely needs to be in its own class anyways. Demanding consumers to create an instance of classes for no reason One of the most.. reason One of the most common arguments is why demand that consumers of our class create an instance for invoking this single method..

Domain Driven Design: Domain Service, Application Service

http://stackoverflow.com/questions/2268699/domain-driven-design-domain-service-application-service

to a Repository . Application Services Used by external consumers to talk to your system think Web Services . If consumers need.. consumers to talk to your system think Web Services . If consumers need access to CRUD operations they would be exposed here. Infrastructure..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

likely needs to be in its own class anyways. Demanding consumers to create an instance of classes for no reason One of the most.. reason One of the most common arguments is why demand that consumers of our class create an instance for invoking this single method..

Collection<T> versus List<T> what should you use on your interfaces?

http://stackoverflow.com/questions/271710/collectiont-versus-listt-what-should-you-use-on-your-interfaces

type to meet your needs without breaking the code of consumers because it can still be returned as the type they are expecting... that you control the semantics of the list and not the consumers. So while your class internally may need these operations it.. may need these operations it is very unlikely that consumers of your class would want to or even should call them. As such..

Why is it considered bad to expose List<T>?

http://stackoverflow.com/questions/387937/why-is-it-considered-bad-to-expose-listt

you to the specific List T type which allows your API consumers to use their own custom implementers of IList T . For even more..

Disposing WPF User Controls

http://stackoverflow.com/questions/502761/disposing-wpf-user-controls

closes. If at all possible I don't want to rely on consumers of my control remembering to call a specific Dispose method...

Does C# support return type covariance?

http://stackoverflow.com/questions/5709034/does-c-sharp-support-return-type-covariance

public override Fish Contents ... This is safe because consumers of Contents via Enclosure expect an Animal and Aquarium promises..

Is there an alternative to bastard injection? (AKA poor man's injection via default constructor)

http://stackoverflow.com/questions/6733667/is-there-an-alternative-to-bastard-injection-aka-poor-mans-injection-via-defa

IThingSource they wanted. However this is too hard to use consumers want to new up a ThingMaker and get to work making Things then..

How to protect dlls?

http://stackoverflow.com/questions/805461/how-to-protect-dlls

bits that exert some control for honest providers and consumers of Assemblies. I have not seen any discussion of the real security..