¡@

Home 

c# Programming Glossary: guidelines

What is “Best Practice” For Comparing Two Instances of a Reference Type?

http://stackoverflow.com/questions/104158/what-is-best-practice-for-comparing-two-instances-of-a-reference-type

returned . While looking over some of the coding standards guidelines in MSDN I came across an article that advises against it. Now..

When to use thread pool in C#?

http://stackoverflow.com/questions/145304/when-to-use-thread-pool-in-c

only whatever that means but I can't seem to find any real guidelines. What are some considerations you use when making this programming..

Are there any suggestions for developing a C# coding standards / best practices document? [closed]

http://stackoverflow.com/questions/14967/are-there-any-suggestions-for-developing-a-c-sharp-coding-standards-best-pract

improve this question We start with Microsoft's .NET guidelines http msdn.microsoft.com en us library ms229042.aspx link updated.. ms229042.aspx link updated for .NET 4.5 Microsoft's C# guidelines http blogs.msdn.com brada articles 361363.aspx . and then document..

String vs string in C# [duplicate]

http://stackoverflow.com/questions/215255/string-vs-string-in-c-sharp

s Hello World String S Hello World Also what are the guidelines for the use of each c# string share improve this question.. no difference. It's like int vs. System.Int32 . As far as guidelines I think it's generally recommended to use string any time you're..

What is the best way to store user settings for a .NET application?

http://stackoverflow.com/questions/26369/what-is-the-best-way-to-store-user-settings-for-a-net-application

the best place the store user settings considering Windows guidelines Some people pointed to Application.LocalUserAppDataPath . However..

What static analysis tools are available for C#? [closed]

http://stackoverflow.com/questions/38635/what-static-analysis-tools-are-available-for-c

tool by Microsoft. Check compliance with .net framework guidelines. No longer available as a standalone download. It is now included..

Creating a DPI-Aware Application

http://stackoverflow.com/questions/4075802/creating-a-dpi-aware-application

spent A LOT of time with this problem. Here are some rules guidelines to make it work correctly without a FlowLayoutPanel or TableLayoutPanel.. on the DEV machine. I guarantee that if you follow these guidelines you will be ok even when you have placed controls with specific..

DateTime vs DateTimeOffset

http://stackoverflow.com/questions/4331189/datetime-vs-datetimeoffset

what does this analogy tell us It provides some intuitive guidelines. If you are representing time relative to some place in particular..

GetHashCode Guidelines in C#

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

a rule. In reality GetHashCode only has to follow these guidelines when things expect the object to follow the guidelines such.. guidelines when things expect the object to follow the guidelines such as when it is being stored in a hash table. If you never.. GetHashCode your implementation doesn't need to follow the guidelines. When you see for the lifetime of the object you should read..

Calling null on a class vs Dispose()

http://stackoverflow.com/questions/574019/calling-null-on-a-class-vs-dispose

there read both ideally. Joe Duffy has a very long set of guidelines around finalizers and IDisposable co written with lots of smart..

implicit vs explicit interface implementation [duplicate]

http://stackoverflow.com/questions/598714/implicit-vs-explicit-interface-implementation

that match. The below rules are from Brad Abrams design guidelines blog . Do not use explicit members as a security boundary. They..

Properties vs Methods

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

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

What's the difference between String and string?

http://stackoverflow.com/questions/7074/whats-the-difference-between-string-and-string

s Hello World String S Hello World Also what are the guidelines for the use of each c# string share improve this question.. no difference. It's like int vs. System.Int32 . As far as guidelines I think it's generally recommended to use string any time you're..

WCF - Design Parameter Decision

http://stackoverflow.com/questions/9553267/wcf-design-parameter-decision

can change the logic on its own interest. . What are the guidelines on such scenarios Do you have any suggestions for any articles..

Event Signature in .NET — Using a Strong Typed 'Sender'?

http://stackoverflow.com/questions/1046016/event-signature-in-net-using-a-strong-typed-sender

Here are some related links that I've found 1 Event Design Guidelines MSDN 3.5 2 C# simple Event Raising using œsender vs. custom EventArgs..

When to use properties instead of functions

http://stackoverflow.com/questions/1374273/when-to-use-properties-instead-of-functions

In addition I'd recommend looking at Microsoft's Design Guidelines for Property Usage . They suggest Use a property when the member..

C# Field Naming Guidelines?

http://stackoverflow.com/questions/3186853/c-sharp-field-naming-guidelines

Field Naming Guidelines I am going to be working on a bit of C# code own my own but.. share improve this question Follow the Microsoft Naming Guidelines . The guidelines for field usage indicate that it should be..

When is using the C# ref keyword ever a good idea?

http://stackoverflow.com/questions/3539252/when-is-using-the-c-sharp-ref-keyword-ever-a-good-idea

share improve this question The Framework Design Guidelines a book by Krzysztof Cwalina and Brad Abrams recommend to avoid.. working with out or ref parameters. The Framework Design Guidelines cite the canonical Swap method as a valid exception void Swap..

GetHashCode Guidelines in C#

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

Guidelines in C# I read in the Essential C# 3.0 and .NET 3.5 book that..

Style guide for c#?

http://stackoverflow.com/questions/4678178/style-guide-for-c

Here are links to the ones I am using... Microsoft Design Guidelines for Class Library Developers http msdn.microsoft.com en us library.. Files csharpcodingstandards.doc SubMain C# VB.NET Coding Guidelines http submain.com products guidelines.aspx Lance Hunt C# Coding..

How do I create a HashCode in .net (c#) for a string that is safe to store in a database?

http://stackoverflow.com/questions/5154970/how-do-i-create-a-hashcode-in-net-c-for-a-string-that-is-safe-to-store-in-a

string that is safe to store in a database To quote from Guidelines and rules for GetHashCode by Eric Lippert Rule Consumers of..

When should I choose inheritance over an interface when designing C# class libraries?

http://stackoverflow.com/questions/5816563/when-should-i-choose-inheritance-over-an-interface-when-designing-c-sharp-class

like this I often turn to the .NET Framework Design Guidelines which have this to say about choosing between classes and interfaces..

Properties vs Methods

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

Choosing Between Properties and Methods section of Design Guidelines for Developing Class Libraries In general methods represent..

Operator Overloading with Interface-Based Programming in C#

http://stackoverflow.com/questions/728434/operator-overloading-with-interface-based-programming-in-c-sharp

than operator or even suggest it. However after re reading Guidelines for Overriding Equals and Operator I have found this By default..

Using Inner classes in C#

http://stackoverflow.com/questions/804453/using-inner-classes-in-c-sharp

implementation. after reading Framework Design and Guidelines I see that this is marked as Avoid however I use it in scenarios..

Event Bubbling and MVP: ASP.NET

http://stackoverflow.com/questions/8851933/event-bubbling-and-mvp-asp-net

based on thier permisssion GUIDELINES Model View Presenter Guidelines COMPLETE CODE using System public interface ICurrentTimeView.. Some MVP discussions Model View Presenter Guidelines In MVP where to write validations MVP Should views be able to..

How expensive are exceptions in C#?

http://stackoverflow.com/questions/891217/how-expensive-are-exceptions-in-c

namespace naming conventions

http://stackoverflow.com/questions/918894/namespace-naming-conventions

share improve this question From the Namespace Naming Guidelines The name chosen for a namespace should indicate the functionality..

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

Equals When Should it Not The VS2005 documentation Guidelines for Overloading Equals and Operator C# Programming Guide states.. not recommended. The newer .NET Framework 4 documentation Guidelines for Implementing Equals and the Equality Operator omits that..