¡@

Home 

c# Programming Glossary: things

How can a Word document be created in C#? [closed]

http://stackoverflow.com/questions/10412/how-can-a-word-document-be-created-in-c

or images that you wish to show. The best way to go about things will all depend sightly upon how much time you have to invest..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

affect the code and not the database. If you're pushing 20 things to the webservers that month and 1 to the database you hardly.. the database you hardly lose much if you instead push 21 things to the webservers and zero to the database. More easily code.. which appears to the outside world as a black box. Simple things like wanting to put them in source control becomes a nightmare...

Volatile vs. Interlocked vs. lock

http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock

sure however if it gets around other CPU's reordering things or if you also need to combine volatile with the increment...

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

the performance impact of each. Repeat until one of three things happens 1 you meet your goals and ship the software 2 you revise..

How to fix the flickering in User controls

http://stackoverflow.com/questions/2612487/how-to-fix-the-flickering-in-user-controls

Turn on WS_EX_COMPOSITED return cp There are many things you can do to improve painting speed to the point that the flicker..

What is the difference between a field and a property in C#?

http://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-in-c

not affecting the external way they are accessed by the things that use your class. public class MyClass this is a field. It..

How do I find out which process is locking a file using .NET?

http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net

locking share improve this question One of the good things about handle.exe is that you can run it as a subprocess and..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

should reflect the Equals logic the rules are if two things are equal Equals ... true then they must return the same value..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

something like the JSonTextReader and just pull out the things I want like OBJECT_TYPE and the x and y position I can't seem..

Best practices for exception management in Java or C#

http://stackoverflow.com/questions/409563/best-practices-for-exception-management-in-java-or-c-sharp

It seems that exception management is one of those things that vary based on context. But most importantly one should..

Casting vs using the 'as' keyword in the CLR

http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr

is this checking twice but it may be checking different things if randomObject is a field rather than a local variable. It's.. On my laptop these all execute in about 60ms. Two things to note There's no significant difference between them. In fact..

Cross-thread operation not valid [duplicate]

http://stackoverflow.com/questions/5037470/cross-thread-operation-not-valid

anything fancy or over complicated atm unless it'll make things much easier when working with the UI in a new Thread. c# .net..

Proper use of the IDisposable interface

http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface

is to clean up unmanaged resources. To me unmanaged means things like database connections sockets window handles etc. But I've..

In C#, why is String a reference type that behaves like a value type?

http://stackoverflow.com/questions/636932/in-c-why-is-string-a-reference-type-that-behaves-like-a-value-type

stack. Stack allocating strings would break all sorts of things the stack is only 1MB you'd have to box each string incurring..

Create code first, many to many, with additional fields in association table

http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table

99 .Select mc mc.Comment .ToList Because of lazy loading things might become easier. If you have a loaded Member you should..

C#: Static readonly vs const

http://stackoverflow.com/questions/755685/c-static-readonly-vs-const

which contains only constant values. Used for various things around in our system. So I am wondering if my observation is..

Is it possible to dynamically compile and execute C# code fragments?

http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments

all static .NET languages is to use the CodeDOM for such things. As a note its other main purpose is for dynamically constructing..

Could not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)

http://stackoverflow.com/questions/11370344/could-not-load-file-or-assembly-an-attempt-was-made-to-load-a-program-with-a

which depend on ProjectA and still work just fine. Things I have tried Make sure both projects are set to Any CPU with..

How to load an Excel Addin using Interop

http://stackoverflow.com/questions/1154558/how-to-load-an-excel-addin-using-interop

this blog post . That isn't all the info you need though. Things to note you must have at least one workbook open or otherwise..

What is the Efficiency and Performance of LINQ and Lambda Expression in .Net?

http://stackoverflow.com/questions/1182922/what-is-the-efficiency-and-performance-of-linq-and-lambda-expression-in-net

is to go and read up on how LINQ is really implemented. Things you should check into are LINQ and how it uses the methods and..

How to create and connect custom user buttons/controls with lines using windows forms

http://stackoverflow.com/questions/15819318/how-to-create-and-connect-custom-user-buttons-controls-with-lines-using-windows

items both nodes and connectors is actually a ListBox . Things worth noting The NodeXX text is contained within a Thumb control..

How do you show animated GIFs on a Windows Form (c#)

http://stackoverflow.com/questions/165735/how-do-you-show-animated-gifs-on-a-windows-form-c

the picturebox Show the picturebox when you are loading. Things to take into consideration Disabling the picturebox will prevent..

C# UserControl Constructor with Parameters

http://stackoverflow.com/questions/1784303/c-sharp-usercontrol-constructor-with-parameters

working properly with the designer in this technique also. Things like DefaultValueAttribute DesignerSerializationVisibilityAttribute..

Is there a list of changes for C#4.0 that work in .Net 3.5?

http://stackoverflow.com/questions/2561022/is-there-a-list-of-changes-for-c4-0-that-work-in-net-3-5

COM syntax improvements e.g. omit ref generic variance Things that won't work include dynamic and no pia our two biggest outlays..

What guarantees are there on the run-time complexity (Big-O) of LINQ methods?

http://stackoverflow.com/questions/2799427/what-guarantees-are-there-on-the-run-time-complexity-big-o-of-linq-methods

sequence once although even this is subject to laziness. Things are murkier for the more complex operations the set like operators..

Why is .NET exception not caught by try/catch block?

http://stackoverflow.com/questions/36014/why-is-net-exception-not-caught-by-try-catch-block

be robust against this exception being thrown through it. Things to play with to see how this looks for those who didn't repro..

C#'s edge over VB [closed]

http://stackoverflow.com/questions/380274/cs-edge-over-vb

C# can do that is impossible using VB or vice versa. Things you just have to consider when choosing C# VB for a project...

WPF/C#: Where should I be saving user preferences files?

http://stackoverflow.com/questions/396229/wpf-c-where-should-i-be-saving-user-preferences-files

coming from the Python world not something I am used too . Things got complicated as I wanted to save dictionaries and apparently..

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode

http://stackoverflow.com/questions/4209999/an-asp-net-setting-has-been-detected-that-does-not-apply-in-integrated-managed-p

there are some suggestions on how to solve the problem Things you can try Migrate the configuration to the system.webServer..

Beginners threading in C#

http://stackoverflow.com/questions/533042/beginners-threading-in-c-sharp

to get a good grounding in it before I start using them. Things I am curious about are things like the concept of having a threadpool..

Is OraOLEDB provider in .NET unreliable on CLOB fields?

http://stackoverflow.com/questions/6147274/is-oraoledb-provider-in-net-unreliable-on-clob-fields

the expected value This is the second open ended comment. Things are really getting crazy now. The field in question is defined..

YouTube API integration ASP.NET - upload video with a single page

http://stackoverflow.com/questions/629435/youtube-api-integration-asp-net-upload-video-with-a-single-page

and when you call GetResponse your file will be submitted. Things to watch out for ScriptTimeout If you're allowing your users..

Do static members ever get garbage collected?

http://stackoverflow.com/questions/6600093/do-static-members-ever-get-garbage-collected

HasStatic HasStatic d new HasStatic Something Other code Things deep GC somewhere in here HasStatic e new HasStatic When a b..

i = i++ doesn't increment i. Why? [duplicate]

http://stackoverflow.com/questions/6716189/i-i-doesnt-increment-i-why

Possible Duplicates Why does this go into an infinite loop Things like i i have undefined behavior in C and C because the value..

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

want to new up a ThingMaker and get to work making Things then months later inject something else when the need arises...

Hungarian notation in C#

http://stackoverflow.com/questions/768255/hungarian-notation-in-c-sharp

where you specify the variable type using a prefix. Things like str for string. This is nearly useless information especially..

MVC Razor view nested foreach's model

http://stackoverflow.com/questions/8894442/mvc-razor-view-nested-foreachs-model

a few things about the property that you are giving it. Things like attributes on the property for validation and specifically..