¡@

Home 

c# Programming Glossary: violates

Getting ServiceStack to retain type information

http://stackoverflow.com/questions/10750571/getting-servicestack-to-retain-type-information

a particular serializer. Leaking C# concerns on the wire violates one of the core goal of services for enabling interoperability...

The way to handle global variables in a class

http://stackoverflow.com/questions/11011619/the-way-to-handle-global-variables-in-a-class

the object for its data in the process which arguably also violates the Law Of Demeter myObject.ExtendEndDate new TimeSpan 1 0 0..

Why is this name not CLS Compliant?

http://stackoverflow.com/questions/1195030/why-is-this-name-not-cls-compliant

you can't start an identifier with an underscore this violates CLS compliant on a visible public protected field. share improve..

Good or bad practice? Initializing objects in getter

http://stackoverflow.com/questions/14774008/good-or-bad-practice-initializing-objects-in-getter

sample and why I consider its implementation naive It violates the Principle of Least Surprise POLS . When a value is assigned.. Adding some sort of support for it when it is not needed violates YAGNI . When a class needs to support serialization there exist..

Conversion of a decimal to double number in C# results in a difference

http://stackoverflow.com/questions/1584314/conversion-of-a-decimal-to-double-number-in-c-sharp-results-in-a-difference

from decimal to double but it's unfortunate. It also violates section 6.2.1 of the C# spec For a conversion from decimal to..

Accessing Database Entities from Controller [closed]

http://stackoverflow.com/questions/17556967/accessing-database-entities-from-controller

black and hard like a flat rock of granite. If option 1 violates a separation of concerns principle by using a database context.. by using a database context in the view layer the option 2 violates the same principle by having presentation centric query logic..

Why is lock(this) {…} bad?

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

and it will encapsulate the locking mechanism. Using this violates encapsulation by exposing part of your locking implementation..

How do I invoke a static constructor with reflection?

http://stackoverflow.com/questions/2524906/how-do-i-invoke-a-static-constructor-with-reflection

would strongly recommend that you don't do this however it violates a type expecting the static constructor to only be executed..

Can you explain Liskov Substitution Principle with a good C# example?

http://stackoverflow.com/questions/4428725/can-you-explain-liskov-substitution-principle-with-a-good-c-sharp-example

violation. Here is an example of a class structure which violates LSP public interface IDuck void Swim contract says that IsSwimming..

Dependency Injection - new instance required in several of a classes methods

http://stackoverflow.com/questions/4648318/dependency-injection-new-instance-required-in-several-of-a-classes-methods

implementation determine the design of the consumer. This violates the Liskov Substitution Principle . A better option is to keep..

Write-Only properties, what's the point? [duplicate]

http://stackoverflow.com/questions/4695551/write-only-properties-whats-the-point

class you would do so by accesssing _MyInt which I feel violates the spirit of encapsulation which properties try to enforce...

C#: Throwing Custom Exception Best Practices

http://stackoverflow.com/questions/4761216/c-throwing-custom-exception-best-practices

class Foo DoSomething int param try if Something Bad violates business logic etc... throw new FooException Reason... ..... through class Foo DoSomething int param if Something Bad violates business logic etc... throw new FooException Reason... .....

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

abstractions such as IProductService and ICustomerService violates the SOLID principles and you might benefit from moving from..

When to use struct in C#?

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

not have to be boxed frequently. Microsoft consistently violates those rules Okay #2 and #3 anyway. Our beloved dictionary has..

using legacy assemblies in metro style app

http://stackoverflow.com/questions/7722868/using-legacy-assemblies-in-metro-style-app

Windows SDK for Metro style Apps. Use of unsupported APIs violates the Windows Store policy and can have negative impact on the..

Seeking clarification on apparent contradictions regarding weakly typed languages

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

forms of strong typing to be violated. The cast operator violates static typing it says to the compiler I know more about the..