¡@

Home 

c# Programming Glossary: examples

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

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

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

regards of what to do next although there are a number of examples out there with simplified JSON strings. Being new to C# and..

How do you do Impersonation in .NET?

http://stackoverflow.com/questions/125341/how-do-you-do-impersonation-in-net

can often get lengthy though and that is why you see many examples like the one you reference that try to simplify the process...

String vs string in C# [duplicate]

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

This is the style that Microsoft tends to use in their examples . It appears that the guidance in this area may have changed..

When do you use the “this” keyword? [closed]

http://stackoverflow.com/questions/23250/when-do-you-use-the-this-keyword

also use it throughout the class in other methods. Some examples In Constructor public Light Vector v this.dir new Vector v Elsewhere..

Why .NET String is immutable? [duplicate]

http://stackoverflow.com/questions/2365272/why-net-string-is-immutable

possible. Interning and atomising being the most obvious examples though we can do other versions of the same principle. I once..

How is Generic Covariance & Contra-variance Implemented in C# 4.0?

http://stackoverflow.com/questions/245607/how-is-generic-covariance-contra-variance-implemented-in-c-sharp-4-0

fact using the abilities that the CLR already has. So the examples I give in the book of trying to use a List Banana as a List.. for instance. Contravariance is harder to give concrete examples for using interfaces but it's easy with a delegate. Consider.. type to another creating a new instance see P141 144 for examples. C# 4 will make this more generic and I believe will avoid creating..

Windows service and timer

http://stackoverflow.com/questions/246697/windows-service-and-timer

Natural Sort Order in C#

http://stackoverflow.com/questions/248603/natural-sort-order-in-c-sharp

string psz1 string psz2 Michael Kaplan has some examples of how this function works here and the changes that were made..

C# Captured Variable In Loop

http://stackoverflow.com/questions/271440/c-sharp-captured-variable-in-loop

Regex for numbers only

http://stackoverflow.com/questions/273141/regex-for-numbers-only

when the contained string is all numbers but with the two examples below it is matching a string that contains all numbers plus..

Will using 'var' affect performance?

http://stackoverflow.com/questions/356846/will-using-var-affect-performance

Earlier I asked a question about why I see so many examples use the 'var' keyword and got the answer that while it's only..

Parsing JSON using Json.net

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

to work the way I want it to and I find little to no examples of usage for it. It seems like serializing first then using..

Proper use of the IDisposable interface

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

it normally would edit So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as..

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

automatically behind the scenes. Edit Just for fun a few examples more how to add entities and relationships and how to delete..

What's the difference between String and string?

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

This is the style that Microsoft tends to use in their examples . It appears that the guidance in this area may have changed..

How to get a user's client IP address in ASP.NET?

http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net

address for ID run the risk of getting it very wrong the examples you give are good ones and they often fail. For example my office..

C# Login to Website via program

http://stackoverflow.com/questions/930807/c-sharp-login-to-website-via-program

searched for the entire day about how to do this and tried examples but have had no luck. Thanks in advance c# website login ..

How can I measure the similarity between 2 strings?

http://stackoverflow.com/questions/1034622/how-can-i-measure-the-similarity-between-2-strings

string text1 string text2 DO SOMETHING HERE TO COMPARE Examples First String StackOverflow Second String StaqOverflow Return..

How do I kill a process using Vb.NET or C#?

http://stackoverflow.com/questions/116090/how-do-i-kill-a-process-using-vb-net-or-c

using System.Diagnostics.Proccess.GetProcessesByName . Examples have already been posted here but I found that the non .exe..

Format Number like Stack Overflow (rounded to thousands with K suffix)

http://stackoverflow.com/questions/2134161/format-number-like-stack-overflow-rounded-to-thousands-with-k-suffix

return num 1000D .ToString 0.# K return num.ToString # 0 Examples 1 1 23 23 136 136 6968 6 968 23067 23.1K 133031 133K Note that..

Method Overloading. Can you overuse it?

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

the opportunity to introduce overloading for each purpose Examples for GetEmployees public IList Employee GetEmployeesBySupervisor.. Employee GetEmployeesByDepartment Department department Examples for GetProduct public IList Product GetProductById int productId..

C# : What if a static method is called from multiple threads?

http://stackoverflow.com/questions/3037637/c-sharp-what-if-a-static-method-is-called-from-multiple-threads

static method accesses any shared state all bets are off. Examples of shared state would be static fields objects accessed from..

How to name C# source files for generic classes

http://stackoverflow.com/questions/3108189/how-to-name-c-sharp-source-files-for-generic-classes

Class Files using the name of the type as the file name. Examples namespace Demo.Bla project enum FlowDirection in file FlowDirection.cs..

Digitally sign PDF files [closed]

http://stackoverflow.com/questions/378247/digitally-sign-pdf-files

would be nice to fully understand how things are done. C# Examples please c# pdf digital signature share improve this question..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

OrderBy on IEnumerable T I found an example in the VS2008 Examples for Dynamic LINQ that allows you to use a sql like string e.g...

How to create a new language for use in Visual Studio

http://stackoverflow.com/questions/4283072/how-to-create-a-new-language-for-use-in-visual-studio

blogs divedeeper archive 2008 11 04 LearnVSXNowPart38.aspx Examples for VSX add ins http blogs.msdn.com vsxteam archive 2009 06..

Design Patterns with C# [closed]

http://stackoverflow.com/questions/4323809/design-patterns-with-c-sharp

to grasp. Not what I would recommend for learning. Examples are in Java but the concepts translate well. You can even get..

C# thread pool limiting threads

http://stackoverflow.com/questions/444627/c-sharp-thread-pool-limiting-threads

isn't that tricky to setup and is very fast and simple. Examples http stackoverflow.com questions 346268 best threading queue..

CQRS Examples and Screencasts [closed]

http://stackoverflow.com/questions/5043513/cqrs-examples-and-screencasts

Examples and Screencasts closed I'm looking for some in depth end to..

Issues Doing a String Comparison in LINQ

http://stackoverflow.com/questions/578231/issues-doing-a-string-comparison-in-linq

string.CompareTo does in fact generate the needed T SQL. Examples below var zipLinqQuery from z in db.ZIPMASTERs where z.CORP..

Examples of IoC Containers [closed]

http://stackoverflow.com/questions/770039/examples-of-ioc-containers

of IoC Containers closed Does anyone have good examples of..

How can I tell if a point belongs to a certain line?

http://stackoverflow.com/questions/907390/how-can-i-tell-if-a-point-belongs-to-a-certain-line

line How can I tell if a point belongs to a certain line Examples are appreciated if possible. c# .net algorithm gdi line share..

How to capitalize the first character of each word, or the first character of a whole string, with C#?

http://stackoverflow.com/questions/913090/how-to-capitalize-the-first-character-of-each-word-or-the-first-character-of-a

in C#. I googled it but only found ways to humanize dates. Examples A way to turn Lorem Lipsum Et into Lorem lipsum et A way to..

Restoring Window Size/Position With Multiple Monitors

http://stackoverflow.com/questions/937298/restoring-window-size-position-with-multiple-monitors

posts around about restoring a WinForm position and size. Examples www.stackoverflow.com questions 92540 save and restore form..