¡@

Home 

c# Programming Glossary: guideline

Why should a .NET struct be less than 16 bytes?

http://stackoverflow.com/questions/1082311/why-should-a-net-struct-be-less-than-16-bytes

type instead of a structure. Failure to adhere to this guideline can negatively impact performance. share improve this answer..

Why can I pass 1 as a short, but not the int variable i?

http://stackoverflow.com/questions/11432508/why-can-i-pass-1-as-a-short-but-not-the-int-variable-i

for normal expressions. This rule is in line with the guideline that implicit conversions should be lossless. 6.1.8 Implicit..

Method vs Property in C# - what's the difference [duplicate]

http://stackoverflow.com/questions/1294152/method-vs-property-in-c-sharp-whats-the-difference

share improve this question Here is a good set of guidelines for when to use properties vs methods from Bill Wagner fixed.. getter does not have an observable side effect Note this guideline doesn't preclude some forms of lazy evaluation in a property...

How to run console application from Windows Service?

http://stackoverflow.com/questions/1369236/how-to-run-console-application-from-windows-service

should program for the future and should follow the Vista guideline even if you don't use it on Vista. If you still want to run..

How to bind to a PasswordBox in MVVM

http://stackoverflow.com/questions/1483892/how-to-bind-to-a-passwordbox-in-mvvm

doing it wrong. People should have the following security guideline tattooed on the inside of their eyelids Never keep plain text..

Order of items in classes: Fields, Properties, Constructors, Methods [closed]

http://stackoverflow.com/questions/150479/order-of-items-in-classes-fields-properties-constructors-methods

Constructors Methods closed Is there a C# official guideline for the order of items in terms of class structure Does it go..

Should I avoid 'async void' event handlers?

http://stackoverflow.com/questions/19415646/should-i-avoid-async-void-event-handlers

async await share improve this question The guideline is to avoid async void except when used in an event handler..

C# coding style - line length / wrapping lines [closed]

http://stackoverflow.com/questions/2151836/c-sharp-coding-style-line-length-wrapping-lines

be on a separate line. I personally think this is a good guideline and I usually choose to break a line completely into its parts.. to your new question In this case I would follow the guidelines above. Personally in your specific case I'd leave this on one..

Method Overloading. Can you overuse it?

http://stackoverflow.com/questions/248222/method-overloading-can-you-overuse-it

can enforce is the name of the method they're calling. The guideline that I follow is to only overload methods if they are interchangable..

GetHashCode Guidelines in C#

http://stackoverflow.com/questions/462451/gethashcode-guidelines-in-c-sharp

cache the method return to enforce this. Is this a valid guideline I have tried a couple built in types in .NET and they didn't.. improve this question The answer is mostly it is a valid guideline but perhaps not a valid rule. It also doesn't tell the whole.. a couple of changes above I made a distinction between guideline and rule. I struck through for the lifetime of the object ...

Preferring EqualityComparer<T> to IEqualityComparer<T>

http://stackoverflow.com/questions/5707347/preferring-equalitycomparert-to-iequalitycomparert

the reasoning they've provided here sound more like a guideline of what your comparers could do and is irrelevant to what it..

Call C++ library in C#

http://stackoverflow.com/questions/574801/call-c-library-in-c-sharp

i met many problems. I want to know if there is a book or guideline to tell me how to do that. c# c function share improve this..

Immutability of structs [duplicate]

http://stackoverflow.com/questions/608542/immutability-of-structs

the BCL. What are the pros and cons of not following this guideline c# .net struct immutability share improve this question ..

Which is faster: Automapper, Valuinjector, or manual mapping? To what degree is each one faster? [closed]

http://stackoverflow.com/questions/8122334/which-is-faster-automapper-valuinjector-or-manual-mapping-to-what-degree-is

to create accurate results that can be used as a reusable guideline. c# .net automapper valueinjecter emitmapper share improve.. to create accurate results that can be used as a reusable guideline. You don't need to know .NET internals. You just need to know..

When Should a .NET Class Override Equals()? When Should it Not?

http://stackoverflow.com/questions/9709088/when-should-a-net-class-override-equals-when-should-it-not

be found in the HashSet. Was MSDN incorrect to remove the guideline about not overriding Equals and operator for non immutable types..