¡@

Home 

c# Programming Glossary: standard

Why is there not a ForEach extension method on the IEnumerable interface?

http://stackoverflow.com/questions/101265/why-is-there-not-a-foreach-extension-method-on-the-ienumerable-interface

missing the function. I wouldn't mind Microsoft adding a standard ForEach method in the next framework iteration. share improve..

Most elegant way to generate prime numbers

http://stackoverflow.com/questions/1042902/most-elegant-way-to-generate-prime-numbers

be slightly larger than necessary which is ok. This is my standard Java sieve computes the first million primes in about a second..

Capturing console output from a .NET application (C#)

http://stackoverflow.com/questions/186822/capturing-console-output-from-a-net-application-c

the only caveat is that you may have to redirect the standard error stream as well to see all output of your application...

Reading/writing an INI file

http://stackoverflow.com/questions/217902/reading-writing-an-ini-file

there any class in the .NET framework that can read write standard .ini files Section keyname value ... Delphi has the TIniFile..

Best way to copy between two Stream instances

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

to copy the contents of one stream to another Is there a standard utility method for this c# stream copying share improve this..

Is there a better alternative than this to 'switch on type'?

http://stackoverflow.com/questions/298976/is-there-a-better-alternative-than-this-to-switch-on-type

statement. For example here is TypeSwitch in action on a standard Windows form event TypeSwitch.Do sender TypeSwitch.Case Button..

c# evaluating string “3*(4+2)” yield int 18 [duplicate]

http://stackoverflow.com/questions/333737/c-sharp-evaluating-string-342-yield-int-18

mystring Console.Writeln result prints 18. Is there a standard framework function that you can replace my EvaluateExpression..

DateTime vs DateTimeOffset

http://stackoverflow.com/questions/4331189/datetime-vs-datetimeoffset

vs DateTimeOffset Currently we have a standard way of dealing with .net DateTimes in a TimeZone aware way Whenever..

How do I make a textbox that only accepts numbers?

http://stackoverflow.com/questions/463299/how-do-i-make-a-textbox-that-only-accepts-numbers

input. I've had success with this two event handlers on a standard TextBox private void textBox1_KeyPress object sender KeyPressEventArgs..

How do I suspend painting for a control and its children?

http://stackoverflow.com/questions/487661/how-do-i-suspend-painting-for-a-control-and-its-children

rich UI app to paint instantly and smoothly. We were using standard .Net controls custom controls and devexpress controls. After..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

before. Currently I'm developing a pair of programs a standard GUI CLI app and a windows service. The app has to tell the service.. but aren't required Note I'm asking about what to use a standard TCP socket named pipes or some other means of communication..

Proper use of the IDisposable interface

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

in order to clean up unmanaged resources. There is even a standardized name for this method public void Dispose There was even.. there anymore while still freeing unmanaged resources. The standard pattern to do this is to have Finalize and Dispose both call..

What is the best workaround for the WCF client `using` block issue?

http://stackoverflow.com/questions/573872/what-is-the-best-workaround-for-the-wcf-client-using-block-issue

clients within a using block as it's pretty much the standard way to use resources that implement IDisposable using var client..

Tree data structure in C#

http://stackoverflow.com/questions/66893/tree-data-structure-in-c-sharp

this question My best advice would be that there is no standard tree data structure because there are so many ways you could..

Anyone know a good workaround for the lack of an enum generic constraint?

http://stackoverflow.com/questions/7244/anyone-know-a-good-workaround-for-the-lack-of-an-enum-generic-constraint

on useful enum methods to get the library up to a usable standard quickly then relax a bit. EDIT I'm not sure about IsSet as a..

Deep cloning objects in C#

http://stackoverflow.com/questions/78536/deep-cloning-objects-in-c-sharp

c# .net clone share improve this question Whilst the standard practice is to implement the ICloneable interface described..

C# Events and Thread Safety

http://stackoverflow.com/questions/786383/c-sharp-events-and-thread-safety

that is never removed. But doing a null check is the standard pattern. So the one remaining fragment of my question is why.. fragment of my question is why is explicit null check the standard pattern The alternative assigning the empty delegate requires..

How can I make a .Net Winforms application that only runs in the System Tray?

http://stackoverflow.com/questions/995195/how-can-i-make-a-net-winforms-application-that-only-runs-in-the-system-tray

if desired. How to support dynamic context menus. The standard NotifyIcon exists in WinForms space can I do a pure WPF solution..

.NET String.Format() to add commas in thousands place for a number

http://stackoverflow.com/questions/105770/net-string-format-to-add-commas-in-thousands-place-for-a-number

floating point number in various ways. Console.WriteLine Standard Numeric Format Specifiers s String.Format C Currency . . . ...

Why is this name not CLS Compliant?

http://stackoverflow.com/questions/1195030/why-is-this-name-not-cls-compliant

the rules of Annex 7 of Technical Report 15 of the Unicode Standard 3.0 which governs the set of characters that can start and be..

How to get the output of a System.Diagnostics.Process?

http://stackoverflow.com/questions/1390559/how-to-get-the-output-of-a-system-diagnostics-process

improve this question What you need to do is capture the Standard Output stream p.StartInfo.RedirectStandardOutput true p.StartInfo.UseShellExecute.. is capture the Standard Output stream p.StartInfo.RedirectStandardOutput true p.StartInfo.UseShellExecute false instead of p.WaitForExit.. instead of p.WaitForExit do string q while p.HasExited q p.StandardOutput.ReadToEnd You may also need to do something similar with..

How to translate between Windows and IANA time zones?

http://stackoverflow.com/questions/17348807/how-to-translate-between-windows-and-iana-time-zones

class are identified by a value such as Eastern Standard Time . Those provided by IANA in the TZDB are identified by..

format of for loops

http://stackoverflow.com/questions/1783822/format-of-for-loops

are more efficient is specifically not defined by the C Standard PDF and the same applies for C and probably also for C# . Section.. §1 The semantic descriptions in this International Standard describe the behavior of an abstract machine in which issues..

C# - Convert UTC/GMT time to local time

http://stackoverflow.com/questions/179940/c-sharp-convert-utc-gmt-time-to-local-time

DateTime.Parse date As per this date site UTC GMT Offset Standard time zone UTC GMT 12 hours Daylight saving time 1 hour Current..

.NET Enumeration allows comma in the last field

http://stackoverflow.com/questions/2147333/net-enumeration-allows-comma-in-the-last-field

out of the C# Specification Page 363 Section 19.7 Like Standard C C# allows a trailing comma at the end of an array initializer...

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

the situation interface IService void Func class StandardService IService public void Func Console.WriteLine Standard.. IService public void Func Console.WriteLine Standard class AlternativeService IService public void Func Console.WriteLine.. Program static void Main string args IKernel kernel new StandardKernel new InlineModule x x.Bind IService .To AlternativeService..

Benefits of using the conditional ?: (ternary) operator

http://stackoverflow.com/questions/3312786/benefits-of-using-the-conditional-ternary-operator

Doesn't seem to be as flexible as the if else construct Standard If Else Can be applied to more situations such as function calls..

How to determine whether a DLL is a managed assembly or native (prevent loading a native dll)?

http://stackoverflow.com/questions/367761/how-to-determine-whether-a-dll-is-a-managed-assembly-or-native-prevent-loading

™s current position to with 96 0x60 . 96 because 28 for Standard fields 68 for NT specific fields From here DataDictionary starts...and..

Where can I find a Java to C# converter?

http://stackoverflow.com/questions/443010/where-can-i-find-a-java-to-c-sharp-converter

. Optionally installed with at least Visual Studio 2005 Standard Edition. Select File Open Convert Java Language Conversion Assistant...

Remove trailing zeros?

http://stackoverflow.com/questions/4525854/remove-trailing-zeros

G29 This should work for all input. Update Check out the Standard Numeric Formats I've had to explicitly set the precision specifier..

parse and execute JS by C#

http://stackoverflow.com/questions/4744105/parse-and-execute-js-by-c-sharp

class. summary param name language The scripting language. Standard Windows Script engines names are 'jscript' or 'vbscript'. param..

format date in c#

http://stackoverflow.com/questions/501460/format-date-in-c-sharp

MSDN pages for more information DateTime.ToString method Standard Date and Time Format Strings Custom Date and Time Format Strings..

Read Post Data submitted to ASP.Net Form

http://stackoverflow.com/questions/564289/read-post-data-submitted-to-asp-net-form

I have a working login form in an asp.net application. Standard stuff with a username and password text box and a button to..

How to get the “friendly” OS Version Name?

http://stackoverflow.com/questions/577634/how-to-get-the-friendly-os-version-name

XP Professional Service Pack 1 or Windows Server 2008 Standard Edition etc. Is there an elegant way of doing that I am also..

C++, C# and JavaScript on WinRT [closed]

http://stackoverflow.com/questions/7466303/c-c-sharp-and-javascript-on-winrt

on which APIs they use those that relies strictly on Standard C C will usually work with no changes while those that call..

Calling C# code from C++

http://stackoverflow.com/questions/778590/calling-c-sharp-code-from-c

namespace naming conventions

http://stackoverflow.com/questions/918894/namespace-naming-conventions

two letter codes identifying countries as specified in ISO Standard 3166 1981. Subsequent components of the package name vary according..