¡@

Home 

c# Programming Glossary: program

Embedding DLLs in a compiled executable

http://stackoverflow.com/questions/189549/embedding-dlls-in-a-compiled-executable

with just leaving the DLLs outside and having the setup program handle everything but there have been a couple of people at..

How To: Execute command line in C#, get STD OUT results

http://stackoverflow.com/questions/206323/how-to-execute-command-line-in-c-get-std-out-results

in C# get STD OUT results How do I execute a command line program from C# and get back the STD OUT results. Specifically I want.. Specifically I want to execute DIFF on two files that are programmatically selected and write the results to a text box. Yes I..

Windows service and timer

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

true Console.WriteLine Press the Enter key to exit the program. Console.ReadLine If the timer is declared in a long running.. similar to the following Press the Enter key to exit the program. The Elapsed event was raised at 5 20 2007 8 42 27 PM The Elapsed..

How to enable assembly bind failure logging (Fusion) in .NET

http://stackoverflow.com/questions/255669/how-to-enable-assembly-bind-failure-logging-fusion-in-net

name and that the Folder exists . You need to restart the program that you're running to force it to read those registry settings...

How to force my .NET App to run as administrator on Windows 7?

http://stackoverflow.com/questions/2818179/how-to-force-my-net-app-to-run-as-administrator-on-windows-7

my .NET App to run as administrator on Windows 7 Once my program is installed on a client machine how to force my program to.. program is installed on a client machine how to force my program to run as administrator on Windows 7 c# .net windows 7 share.. want to modify the manifest that gets embedded in the program. This works on VS2008 and higher Project Add New Item select..

Performance differences between debug and release builds

http://stackoverflow.com/questions/4043821/performance-differences-between-debug-and-release-builds

between the Debug and Release configurations in my program and I have usually opted to go for the Debug configuration even.. opted to go for the Debug configuration even when the programs are actually deployed at the customers place. As far as I know.. the code you write that actually affects the perf of your program. The JIT optimizer isn't smart enough to know up front what..

.NET String to byte Array C#

http://stackoverflow.com/questions/472906/net-string-to-byte-array-c-sharp

0 bytes.Length return new string chars As long as your program or other programs don't try to interpret the bytes somehow which.. return new string chars As long as your program or other programs don't try to interpret the bytes somehow which you obviously..

Casting vs using the 'as' keyword in the CLR

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

ended using a lot of interfaces. One of my goals is to program to an interface not an implementation. What I've found is that.. is there a cost difference or how does this affect my program Hopefully this makes sense. Sorry for the bad example it is..

Use of Application.DoEvents()

http://stackoverflow.com/questions/5181777/use-of-application-doevents

not easy to grok. Right off the bat almost any Winforms program actually contains a call to DoEvents . It is cleverly disguised.. it freezing the rest of the windows in the app. Most programmers want to use DoEvents to stop their user interface from freezing.. it another way there is no way for the user to make your program run code in a different order. It will execute predictably just..

Fastest Way of Inserting in Entity Framework

http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework

false return context I have a test program which inserts 560.000 entities 9 scalar properties no navigation..

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

do I convert Word files to PDF programmatically I have found several open source freeware programs.. I have found several open source freeware programs that allow you to convert .doc files to .pdf files but they're.. driver variety with no SDK attached. I have found several programs that do have an SDK allowing you to convert .doc files to .pdf..

Sending email through Gmail SMTP server with C#

http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp

didn't spot it until I had a simpler version on a console program and saw it was working no change on the Gmail side as you were..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

there a way to check if a file is in use I'm writing a program in C# that needs to repeatedly access 1 image file. Most of..

Dependency Inject (DI) “friendly” library

http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library

DI Container agnostic way follow these general principles Program to an interface not an implementation This principle is actually..

Why is lock(this) {…} bad?

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

lock this System.Threading.Thread.Sleep 10000 class Program static void Main string args var nancy new Person Name Nancy..

Randomize a List<T> in C#

http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp

useful comment received today from @weston here on SO. Program.cs using System using System.Collections.Generic using System.Threading.. using System.Threading namespace SimpleLottery class Program private static void Main string args var numbers new List int..

Implement C# Generic Timeout

http://stackoverflow.com/questions/299198/implement-c-sharp-generic-timeout

it and swallowing the ThreadAbortException Usage class Program static void Main string args try the five second method with..

Parsing JSON using Json.net

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

get set public List SubObject objects get set static class Program const string json @ displayFieldName OBJECT_NAME fieldAliases..

Dynamic LINQ OrderBy on IEnumerable<T>

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

using System.Runtime.CompilerServices static class Program private static class AccessorCache private static readonly..

How do I get the path of the assembly the code is in?

http://stackoverflow.com/questions/52797/how-do-i-get-the-path-of-the-assembly-the-code-is-in

from the MbUnit Gui Environment.CurrentDirectory gives c Program Files MbUnit System.Reflection.Assembly.GetAssembly typeof DaoTests..

Convert generic List/Enumerable to DataTable?

http://stackoverflow.com/questions/564366/convert-generic-list-enumerable-to-datatable

public string E get set public int F get set static class Program static void RunTest List MyData data string caption GC.Collect..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

EmbedInteropTypes True EmbedInteropTypes HintPath C Program Files x86 Microsoft Visual Studio 9.0 Common7 IDE PrivateAssemblies.. with a strong key In the Debug tab set Start External Program to C Program Files x86 Internet Explorer iexplore.exe In the.. key In the Debug tab set Start External Program to C Program Files x86 Internet Explorer iexplore.exe In the Debug tab set..

What is differences between Multidimensional array and Array of Arrays in C#?

http://stackoverflow.com/questions/597720/what-is-differences-between-multidimensional-array-and-array-of-arrays-in-c

ldarg.3 IL_0005 stelem.i4 IL_0006 ret end of method Program SetElementAt .method private hidebysig static void SetElementAt.. 0... Set int32 int32 int32 IL_0009 ret end of method Program SetElementAt When using jagged arrays you can easily perform..

How to associate a file extension to the current executable in C#

http://stackoverflow.com/questions/69761/how-to-associate-a-file-extension-to-the-current-executable-in-c-sharp

open HKEY_CLASSES_ROOT emeditor.txt shell open command @ C Program Files EmEditor EMEDITOR.EXE 1 HKEY_CLASSES_ROOT emeditor.txt.. HKEY_CLASSES_ROOT emeditor.txt shell print command @ C Program Files EmEditor EMEDITOR.EXE p 1 share improve this answer..

Sending email through Gmail SMTP server with C#

http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp

using System.Net namespace ConsoleApplication2 class Program static void Main string args var client new SmtpClient smtp.gmail.com..

Why is floating point arithmetic in C# imprecise?

http://stackoverflow.com/questions/753948/why-is-floating-point-arithmetic-in-c-sharp-imprecise

Why does the following program print what it prints class Program static void Main string args float f1 0.09f 100f float f2 0.09f..

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

using Microsoft.CSharp using System.CodeDom.Compiler class Program static void Main string args var csc new CSharpCodeProvider.. parameters @ using System.Linq class Program public static void Main string args var q from i in Enumerable.Range..