¡@

Home 

c# Programming Glossary: go

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

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

word openxml share improve this question The answer is going to depend slightly upon if the application is running on.. machine. If you are running on a server then you are going to want to use one of the XML based office generation formats.. of graphs or images that you wish to show. The best way to go about things will all depend sightly upon how much time you..

How to execute a stored procedure within C# program

http://stackoverflow.com/questions/1260952/how-to-execute-a-stored-procedure-within-c-sharp-program

SqlServer query window and saved it as stored1 use master go create procedure dbo.test as DECLARE @command as varchar 1000..

Volatile vs. Interlocked vs. lock

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

with the increment. Footnote What volatile is actually good for. As volatile doesn't prevent these kind of multithreading.. these kind of multithreading issues what's it for A good example is say you have 2 threads one which always writes.. As soon as you do a single read modify write you need to go to Interlocked operations or use a Lock. share improve this..

Transitioning from Windows Forms to WPF

http://stackoverflow.com/questions/15681352/transitioning-from-windows-forms-to-wpf

is just a learning curve and at some point I plan to go on a course to learn WPF properly. In the meantime I want to..

Understanding Garbage Collection in .net

http://stackoverflow.com/questions/17130382/understanding-garbage-collection-in-net

combo in the upper left corner to Release . Next go into Tools Options Debugging General and untick the Suppress..

How can I find the method that called the current method?

http://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-called-the-current-method

but I want to go one step beneath this in the stack trace. I've considered parsing..

Embedding DLLs in a compiled executable

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

DLLs in a compiled executable You know I haven't seen a good answer for this anywhere. Is it possible to embed a pre existing.. one file to distribute If it is possible how would one go about doing it Normally I'm cool with just leaving the DLLs..

Automating the InvokeRequired code pattern

http://stackoverflow.com/questions/2367718/automating-the-invokerequired-code-pattern

function to objects that does this check without having to go through all this extra work like a object1.InvokeIfNecessary.visible..

High Quality Image Scaling C#

http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp

C# I want to scale an image in C# with quality level as good as Photoshop does. Is there any C# image processing library.. of how to consume the ImageUtilities class so here you go. resize the image to the specified height and width using var..

How to fix the flickering in User controls

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

can solve. Nor BeginUpdate or SuspendLayout. You've got too many controls the BackgroundImage can make it a lot worse... leaving holes where the child control windows go. Each child control then gets a message to paint itself they'll.. property to Tile . If that gives a noticeable speed up go back to your painting program and resize the image to be a better..

How do you convert Byte Array to Hexadecimal String, and vice versa?

http://stackoverflow.com/questions/311165/how-do-you-convert-byte-array-to-hexadecimal-string-and-vice-versa

doing it for example here . The reverse conversion would go like this public static byte StringToByteArray String hex int..

Performance differences between debug and release builds

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

configurations in my program and I have usually opted to go for the Debug configuration even when the programs are actually..

Dynamic LINQ OrderBy on IEnumerable<T>

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

with IEnumerable T you could add some wrapper methods that go via AsQueryable but the code below is the core Expression logic..

Casting vs using the 'as' keyword in the CLR

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

of that I've ended using a lot of interfaces. One of my goals is to program to an interface not an implementation. What.. . I think it's more elegant and consistent but there we go. If you really don't need the converted value but you just need.. be the bottleneck in your code unless you really aren't going to do anything with the values afterwards. So let's not worry..

LINQ to SQL: Return anonymous type?

http://stackoverflow.com/questions/534690/linq-to-sql-return-anonymous-type

linq linq to sql share improve this question I tend to go for this pattern public class DogWithBreed public Dog Dog get..

Developing Internet Explorer Extensions?

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

knowledge This would include code samples or links to good ones or documentation on the process or anything. I really.. maybe . I'll try to fix that later. Now it is time to go. I am very tired. Feel free to ask questions... may be I will.. may be I will not be abled to answer since I am going on a trip... in 3 days I'm back but I'll try to come here..

How to check if a number is a power of 2

http://stackoverflow.com/questions/600293/how-to-check-if-a-number-is-a-power-of-2

if a number is a power of 2 Today I needed a simple algorithm for checking if a number is a power of 2. The algorithm.. algorithm for checking if a number is a power of 2. The algorithm needs to be Simple Correct for any ulong value. I came.. Correct for any ulong value. I came up with this simple algorithm private bool IsPowerOfTwo ulong number if number 0 return..

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

and overall logic of read write with WebSocket framing. Go to this link . After framing is implemented make sure that you..

Impersonation in ASP.NET MVC

http://stackoverflow.com/questions/1405612/impersonation-in-asp-net-mvc

enable delegation for the IIS machine in Active Directory. Go to Active Directory Users and Computers find the computer click..

ASP.Net double-click problem

http://stackoverflow.com/questions/1498269/asp-net-double-click-problem

server ID VerifyStepContinue ImageUrl image src ToolTip Go TabIndex 98 CausesValidation true OnClick methodName OnClientClick.. Name InputStepContinue ImageUrl imagesrc ToolTip Go TabIndex 98 CausesValidation true OnClick SubmitMethod OnClientClick..

Slow SoapHttpClientProtocol constructor

http://stackoverflow.com/questions/172095/slow-soaphttpclientprotocol-constructor

the VimService.XmlSerializers.dll in the current directory Go back to the VimService.cs file and remove all System.Xml.Serialization...

Creating an instance using Ninject with additional parameters in the constructor

http://stackoverflow.com/questions/2227548/creating-an-instance-using-ninject-with-additional-parameters-in-the-constructor

time here hanging around the dependency injection tag. Go read Mark Seemann's top rated posts here on SO right now you'll..

Sharepoint web services — The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'

http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti

I do. I'm really at wits end here. I see a lot of links on Google that say switch to Kerberos but my server seems to only.. sites SiteCollection SubSite _vti_bin Lists.asmx Click Go Click OK Make the following code changes Change your app.config..

SOAP client in .NET - references or examples?

http://stackoverflow.com/questions/3100458/soap-client-in-net-references-or-examples

As I said above class names may vary in your case. Go to your C# source code. Add using WindowsFormsApplication1.ServiceReference1..

Create an array or List of all dates between two dates

http://stackoverflow.com/questions/3738748/create-an-array-or-list-of-all-dates-between-two-dates

entire date range. This skews the charts I need to create. Go given the date range taken at the begining of the query I'd..

Good or bad practice for Dialogs in wpf with MVVM?

http://stackoverflow.com/questions/3801681/good-or-bad-practice-for-dialogs-in-wpf-with-mvvm

or bad practice for Dialogs in wpf with MVVM I lately had.. is a good approach and I used similar ones in the past. Go for it One minor thing I'd definitely do is make the event receive..

C# thread pool limiting threads

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

Capacity 3 static void Main for int i 0 i 10 i new Thread Go .Start static void Go while true s.WaitOne Thread.Sleep 100.. Main for int i 0 i 10 i new Thread Go .Start static void Go while true s.WaitOne Thread.Sleep 100 Only 3 threads can get..

How do I create a real-time Excel automation add-in in C# using RtdServer?

http://stackoverflow.com/questions/5397607/how-do-i-create-a-real-time-excel-automation-add-in-in-c-sharp-using-rtdserver

me get started. I found comments by Mike Rosenblum and Govert especially helpful. c# vsto excel addins rtd excel udf.. 4 Build Solution F6 5 Run Excel. Go to Excel Options Add Ins Manage Excel Add Ins Automation and..

good Speech recognition API

http://stackoverflow.com/questions/5467827/good-speech-recognition-api

it can be trained by the speaker to improve its accuracy. Go through the Windows 7 recognizer training and see if the accuracy..

How and why do I set up a C# build machine?

http://stackoverflow.com/questions/616149/how-and-why-do-i-set-up-a-c-sharp-build-machine

tests of the project because I understand that this is a Good Thing. Trouble is we don't have a whole lot of budget here.. builds Q Is there anything else I'm not seeing here A No Go get hudson right now you wont be dissapointed share improve..

How do you find all implementations of an interface?

http://stackoverflow.com/questions/620376/how-do-you-find-all-implementations-of-an-interface

In Visual Studio right click on the type name and choose Go to Inheritor . Alternatively select the type name then go to..

Display lines number in Stack Trace for .NET assembly in Release mode

http://stackoverflow.com/questions/628565/display-lines-number-in-stack-trace-for-net-assembly-in-release-mode

stack trace line numbers share improve this question Go into the Properties window for the project where you want to..

Do you say No to C# Regions? [closed]

http://stackoverflow.com/questions/755465/do-you-say-no-to-c-sharp-regions

using ITextSharp to extract and update links in an existing PDF

http://stackoverflow.com/questions/8140339/using-itextsharp-to-extract-and-update-links-in-an-existing-pdf

things 1 Create a sample PDF with a link in it pointing to Google.com and 2 replaces that link with a link to bing.com. The.. Doc.Add new Paragraph new Chunk Go to URL BlueFont .SetAction new PdfAction http www.google.com..

WCF Service or Web API

http://stackoverflow.com/questions/9502548/wcf-service-or-web-api

operations which are non CRUD in nature I'd recommend Googling REST non CRUD . I found this blog post RESTful URLs for.. future as this is time sensitive Microsoft has provided a Go Live license with the beta which means that it is supported..

Insert entire DataTable into database at once instead of row by row?

http://stackoverflow.com/questions/10405373/insert-entire-datatable-into-database-at-once-instead-of-row-by-row

DATETIME etc etc. The columns you have in your data table. GO CREATE PROCEDURE dbo.InsertMyDataTable @dt AS dbo.MyDataTable.. dbo.RealTable column list SELECT column list FROM @dt END GO Now in your C# code DataTable tvp new DataTable define populate..

How to pass an array into a SQL Server stored procedure

http://stackoverflow.com/questions/11102358/how-to-pass-an-array-into-a-sql-server-stored-procedure

CREATE TYPE dbo.EmployeeList AS TABLE EmployeeID INT GO CREATE PROCEDURE dbo.DoSomethingWithEmployees @List AS dbo.EmployeeList.. AS BEGIN SET NOCOUNT ON SELECT EmployeeID FROM @List END GO Now in your C# code DataTable tvp new DataTable define populate.. APPLY XML .nodes 'i' AS x i AS y WHERE Item IS NOT NULL GO Now your stored procedure can just be CREATE PROCEDURE dbo.DoSomethingWithEmployees..

How can I execute a .sql from C#?

http://stackoverflow.com/questions/1449646/how-can-i-execute-a-sql-from-c

the schema needed for the tests to actually run including GO statements. How can I execute the .sql file or is this totally.. properly. Update The ADO.NET libraries do not support the 'GO' keyword . It looks like your options are Parse the script... looks like your options are Parse the script. Remove the 'GO' keywords and split the script into separate batches. Execute..

Exclusive access could not be obtained because the database is in use

http://stackoverflow.com/questions/4046708/exclusive-access-could-not-be-obtained-because-the-database-is-in-use

DATABASE MyDB SET Single_User WITH Rollback Immediate GO Now you can perform your restore with impunity. Make sure you..

How do I execute a large SQL script (with GO commands) from c#?

http://stackoverflow.com/questions/40814/how-do-i-execute-a-large-sql-script-with-go-commands-from-c

do I execute a large SQL script with GO commands from c# I need to execute a large set of sql statements.. a c# program. These statements need to be separated by GO statements but SqlCommand.ExecuteNonQuery does not like GO statements... GO statements but SqlCommand.ExecuteNonQuery does not like GO statements. My solution which I suppose I'll post for reference..

How can I generate database tables from C# classes?

http://stackoverflow.com/questions/47239/how-can-i-generate-database-tables-from-c-sharp-classes

We have a FK Relationship Console.WriteLine GO Console.WriteLine ALTER TABLE table.ClassName WITH NOCHECK.. field.Key REFERENCES t2.ClassName ID Console.WriteLine GO public class TableClass private List KeyValuePair String.. BIGINT CREATE TABLE FKClass ID BIGINT AFKInt BIGINT GO ALTER TABLE FakeDataClass WITH NOCHECK ADD CONSTRAINT FK_AFKReference..

Getting return value from stored procedure in C#

http://stackoverflow.com/questions/706361/getting-return-value-from-stored-procedure-in-c-sharp

SELECT Password FROM dbo.tblUser WHERE Login @a RETURN @b GO This compiles perfectly fine. In C# I want to execute this query..

Get value output from SQL Server stored procedure into variable

http://stackoverflow.com/questions/8618978/get-value-output-from-sql-server-stored-procedure-into-variable

1 OUTPUT DELETED.Id WHERE IsAllocated 0 COMMIT TRANSACTION GO It's been used in C# EF code without a problem via ExecuteFunction..