¡@

Home 

c# Programming Glossary: output

Parse JSON in C#

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

and .NET in general I've struggled to get a genuine text output for my ASP.NET page so I've been recommended to give JSON.NET..

Create Excel (.XLS and .XLSX) file from C# [closed]

http://stackoverflow.com/questions/151005/create-excel-xls-and-xlsx-file-from-c-sharp

way I am handling this but I would like to control the output formats. EDIT I am still looking at these to see the best alternative..

c# - How do I round a decimal value to 2 decimal places (for output on a page)

http://stackoverflow.com/questions/164926/c-sharp-how-do-i-round-a-decimal-value-to-2-decimal-places-for-output-on-a-pa

How do I round a decimal value to 2 decimal places for output on a page Newbie programmer question When displaying the value.. using it to represent dollars and cents I only want the output to be 2 decimal places. Do I use a variation of .ToString for..

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

the child process. Process p new Process Redirect the output stream of the child process. p.StartInfo.UseShellExecute false.. the end of its redirected stream. p.WaitForExit Read the output stream first and then wait. string output p.StandardOutput.ReadToEnd.. Read the output stream first and then wait. string output p.StandardOutput.ReadToEnd p.WaitForExit Code is from MSDN ...

Best way to copy between two Stream instances

http://stackoverflow.com/questions/230128/best-way-to-copy-between-two-stream-instances

there is the Stream.CopyToAsync method input.CopyToAsync output This will return a Task that can be continued on when completed.. on when completed like so await input.CopyToAsync output Code from here on will be run in a continuation. Note that depending.. 4.0 on there's is the Stream.CopyTo method input.CopyTo output For .NET 3.5 and before There isn't anything baked into the..

Windows service and timer

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

was raised at 0 e.SignalTime This code example produces output similar to the following Press the Enter key to exit the program...

Why is lock(this) {…} bad?

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

person.Name else Monitor.Exit person.Name Console output 'this' person is locked Nancy Drew is 16 years old. 'this' person..

C# Captured Variable In Loop

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

act in actions Console.WriteLine act.Invoke I expect it to output 0 2 4 6 8. However it actually output five 10s. It seems that.. I expect it to output 0 2 4 6 8. However it actually output five 10s. It seems that it is due to all actions are referring.. As a result when they get invoked they all have same output. Is there any way to walk round this limit to have each action..

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

is that you can run it as a subprocess and parse the output. We do this in our deployment script works like a charm. share..

C# String enums

http://stackoverflow.com/questions/424366/c-sharp-string-enums

public static string GetStringValue Enum value string output null Type type value.GetType Check first in our cached results..... StringValue false as StringValue if attrs.Length 0 output attrs 0 .Value return output Good now I've got the tools to.. if attrs.Length 0 output attrs 0 .Value return output Good now I've got the tools to get a string value for an enumerator...

Clearing Page Cache in ASP.NET

http://stackoverflow.com/questions/11585/clearing-page-cache-in-asp-net

Page Cache in ASP.NET For my blog I am wanting to use the Output Cache to save a cached version of a perticular post for around.. a perticular post for around 10 minutes and thats fine... @OutputCache Duration 600 VaryByParam However if someone posts a comment.. I've found the answer I was looking for HttpResponse.RemoveOutputCacheItem caching CacheForever.aspx share improve this answer..

C#, regular expressions : how to parse comma-separated values, where some values might be quoted strings themselves containing commas

http://stackoverflow.com/questions/1189416/c-regular-expressions-how-to-parse-comma-separated-values-where-some-values

Console.WriteLine j t match match match.NextMatch Output in part appears as follows 0 cat 1 dog 2 0 OFF 3 1 ON 4 lion..

Do try/catch blocks hurt performance when exceptions are not thrown?

http://stackoverflow.com/questions/1308432/do-try-catch-blocks-hurt-performance-when-exceptions-are-not-thrown

i d Math.Sin 1 w.Stop Console.WriteLine w.Elapsed Output 00 00 00.4269033 with try catch 00 00 00.4260383 without. In..

Generating an Xml Serialization assembly as part of my build

http://stackoverflow.com/questions/134224/generating-an-xml-serialization-assembly-as-part-of-my-build

Inputs MSBuildAllProjects @ IntermediateAssembly Outputs OutputPath _SGenDllName Delete the file because I can't figure.. Inputs MSBuildAllProjects @ IntermediateAssembly Outputs OutputPath _SGenDllName Delete the file because I can't figure out.. SGen BuildAssemblyName TargetFileName BuildAssemblyPath OutputPath References @ ReferencePath ShouldGenerateSerializer true..

Can I show file copy progress using FileInfo.CopyTo() in .NET?

http://stackoverflow.com/questions/187768/can-i-show-file-copy-progress-using-fileinfo-copyto-in-net

Simple C# CSV Excel export class

http://stackoverflow.com/questions/2422212/simple-c-sharp-csv-excel-export-class

output ' ' output.Replace ' ' return output summary Output all rows as a CSV returning a string summary public string Export..

How do I split a string by strings and include the delimiters using .NET?

http://stackoverflow.com/questions/2484919/how-do-i-split-a-string-by-strings-and-include-the-delimiters-using-net

readonly long Milliseconds public readonly List string Output public Result int funcID int srcID int delimID long milliseconds.. SrcID srcID DelimID delimID Milliseconds milliseconds Output output public void Print Console.WriteLine S SrcID tD DelimID.. tD DelimID tF FuncID t Milliseconds ms Console.WriteLine Output.Count t string.Join Output.Take 10 .Select x x.Length 15 x x.Substring..

Get the property, as a string, from an Expression<Func<TModel,TProperty>>

http://stackoverflow.com/questions/2789504/get-the-property-as-a-string-from-an-expressionfunctmodel-tproperty

complexExp Console.WriteLine GetFullPropertyName ageExp Output FirstName Address.State.Abbreviation Age share improve this..

Get output parameter value in ADO.NET

http://stackoverflow.com/questions/290652/get-output-parameter-value-in-ado-net

just need to create a SqlParameter set the Direction to Output and add it to the SqlCommand 's Parameters collection. Then.. SqlCommand sproc conn Create parameter with Direction as Output and correct name and type SqlParameter outputIdParam new SqlParameter.. @ID SqlDbType.Int Direction ParameterDirection.Output cmd.CommandType CommandType.StoredProcedure cmd.Parameters.Add..

Can't operator == be applied to generic types in C#?

http://stackoverflow.com/questions/390900/cant-operator-be-applied-to-generic-types-in-c

b Console.WriteLine Overloaded called return a.Equals b Output Inline Overloaded called Generic Press any key to continue ...

Can a C# thread really cache a value and ignore changes to that value on other threads?

http://stackoverflow.com/questions/458173/can-a-c-sharp-thread-really-cache-a-value-and-ignore-changes-to-that-value-on-ot

i 0 while stopping i Console.WriteLine DoWork exit i Output Main exit but still running at full CPU note that stopping has..

Show Console in Windows Application?

http://stackoverflow.com/questions/472282/show-console-in-windows-application

tend to stop and ask myself am I overcomplicating things . Output type Windows Application using System using System.Collections.Generic..

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

is not essential . Press the Advanced... button and choose Output Debug Info pdb only. Deploy the generated .pdb file with the..

Inner join of DataTables in C#

http://stackoverflow.com/questions/665754/inner-join-of-datatables-in-c-sharp

item.CustID item.ColX item.ColY item.ColZ Console.ReadLine Output ID 1 ColX 11 ColY 21 ColZ 31 ID 2 ColX 12 ColY 22 ColZ 32 ID..

Poor man's “lexer” for C#

http://stackoverflow.com/questions/673113/poor-mans-lexer-for-c-sharp

Token 0 Contents 1 l.Token l.TokenContents Output Token LEFT Contents Token SPACE Contents Token SYMBOL Contents..

MetadataException: Unable to load the specified metadata resource

http://stackoverflow.com/questions/689355/metadataexception-unable-to-load-the-specified-metadata-resource

property of the model to Copy to Output Directory. The connection string could be wrong. I know you..

How can I strip HTML tags from a string in ASP.NET?

http://stackoverflow.com/questions/785715/how-can-i-strip-html-tags-from-a-string-in-asp-net

like PHP's strip_tags . Example ul li Hello li ul Output Hello I am trying not to reinvent the wheel but I have not found..

servicestack REST API and CORS

http://stackoverflow.com/questions/8211930/servicestack-rest-api-and-cors

a flexible API that lets you configure any desired HTTP Output. Setting Global HTTP Headers This is how to globally enable..

Are Timers and Loops in .Net accurate?

http://stackoverflow.com/questions/11531128/are-timers-and-loops-in-net-accurate

false MessageBox.Show i.ToString Timer Output OUTPUT Should be same but For LOOP private void button1_Click object.. Cursors.Default MessageBox.Show i.ToString Loop Output OUTPUT Should be same but What should I do to make loops and timer.. for performance measurements use StopWatch . 2 OUTPUT Should be same but .. Why should they You are running managed..

How can I obtain all the possible combination of a subset?

http://stackoverflow.com/questions/13765699/how-can-i-obtain-all-the-possible-combination-of-a-subset

var ss in fxn count ss.Sum return sw.ElapsedMilliseconds OUTPUT 1281 1604 _Jodrell not _Jodrell2 6817 Jodrell's Update I've..

Sharing sessions across applications using the ASP.NET Session State Service

http://stackoverflow.com/questions/2868316/sharing-sessions-across-applications-using-the-asp-net-session-state-service

Stored procedure TempGetAppID tweak to @appId int OUTPUT AS start change Use the application name specified in the connection..

How to run the stored procedure that has OUTPUT parameter from C#?

http://stackoverflow.com/questions/3433694/how-to-run-the-stored-procedure-that-has-output-parameter-from-c

to run the stored procedure that has OUTPUT parameter from C# I have a stored procedure with an output..

How to split string preserving whole words?

http://stackoverflow.com/questions/4398270/how-to-split-string-preserving-whole-words

awarded for longer term goals. Silver badges are uncommon. OUTPUT 1 part Silver badges are awarded for 2 part longer term goals...

Is there a way to dynamically execute a string in .net, similar to eval() in javascript or dynamic sql in sql?

http://stackoverflow.com/questions/508213/is-there-a-way-to-dynamically-execute-a-string-in-net-similar-to-eval-in-jav

@params N'@s nvarchar 1000 @result nvarchar 1000 OUTPUT' @s @s @result @result OUTPUT Then I could put arbitrary sql.. 1000 @result nvarchar 1000 OUTPUT' @s @s @result @result OUTPUT Then I could put arbitrary sql into my @manipulation something..

How to get last inserted id?

http://stackoverflow.com/questions/5228780/how-to-get-last-inserted-id

Server 2005 INSERT INTO aspnet_GameProfiles UserId GameId OUTPUT INSERTED.ID VALUES @UserId @GameId ...or SQL Server 2000 INSERT..

SQL Server and C#: get last inserted id

http://stackoverflow.com/questions/6109634/sql-server-and-c-get-last-inserted-id

Thanks c# sql server share improve this question OUTPUT clause string query INSERT INTO SocialGroup created_by_fbuid.. string query INSERT INTO SocialGroup created_by_fbuid OUTPUT INSERTED.IDCol use real column here VALUES @FBUID ... int lastId..

SQL: Update a row and returning a column value with 1 query

http://stackoverflow.com/questions/700786/sql-update-a-row-and-returning-a-column-value-with-1-query

tsql ado.net share improve this question You want the OUTPUT clause UPDATE Items SET Clicks Clicks 1 OUTPUT INSERTED.Name..

FileInfo Exceptions

http://stackoverflow.com/questions/7184472/fileinfo-exceptions

s sw.Flush sw.Close fileStream.Close HERE IS MY OUTPUT WHENEVER I HAVE CREATED A NEW FILE OnCreate Could not find file..

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

TRANSACTION UPDATE TOP 1 IdReservation SET IsAllocated 1 OUTPUT DELETED.Id WHERE IsAllocated 0 COMMIT TRANSACTION GO It's been.. int UPDATE TOP 1 IdReservation SET @id Id IsAllocated 1 OUTPUT DELETED.Id WHERE IsAllocated 0 COMMIT TRANSACTION return @id..

SCOPE_IDENTITY() always returning 0

http://stackoverflow.com/questions/8633821/scope-identity-always-returning-0

varchar 500 @Order_Count int @lastrecord INT OUTPUT AS BEGIN SET NOCOUNT ON added to prevent extra result sets from.. CREATE PROCEDURE dbo.QuickExample @Name VARCHAR 50 @Id INT OUTPUT AS INSERT INTO dbo.MyTable Name VALUES @Name SET @Id SCOPE_IDENTITY..

Is there a way to “override” a method with reflection?

http://stackoverflow.com/questions/9684804/is-there-a-way-to-override-a-method-with-reflection

Hello world Property's name e.PropertyName OUTPUT INPC implementation and usage The resulting object is castable..

Why does WPF databinding swallow exceptions?

http://stackoverflow.com/questions/978887/why-does-wpf-databinding-swallow-exceptions

are swallowed natively but they are displayed in the OUTPUT dialog in the visual studio interface. If you wish to be notified..