¡@

Home 

c# Programming Glossary: without

How to check for file lock?

http://stackoverflow.com/questions/1304/how-to-check-for-file-lock

lock Is there any way to check whether a file is locked without using a try catch block Right now the only way I know of is..

Elevating process privilege programatically?

http://stackoverflow.com/questions/133379/elevating-process-privilege-programatically

cause all child processes to run with elevated permissions without additional prompting. Edit I see just just edited your question..

How to properly clean up Excel interop objects

http://stackoverflow.com/questions/158706/how-to-properly-clean-up-excel-interop-objects

guess you're invoking at least one member of a COM object without assigning it to a variable. For me it was the excelApp.Worksheets.. was the excelApp.Worksheets object which I directly used without assigning it to a variable Worksheet sheet excelApp.Worksheets.Open..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

can use multiple SQLConnection s in a TransactionScope without escalating provided the connections are not open at the same..

How to stop BackgroundWorker on Form's Closing event?

http://stackoverflow.com/questions/1731384/how-to-stop-backgroundworker-on-forms-closing-event

also understandably. Any ideas how do I close this app without getting the exception or the deadlock Following are 3 relevant..

Creating a byte array from a stream

http://stackoverflow.com/questions/221925/creating-a-byte-array-from-a-stream

you know the size to start with or think you know the size without being sure you can construct the MemoryStream to be that size..

Automating the InvokeRequired code pattern

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

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

Why is lock(this) {…} bad?

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

any one with a reference to the object can lock on it without the object designer creator knowing about it. This increases..

Call ASP.NET Function From Javascript?

http://stackoverflow.com/questions/3713/call-asp-net-function-from-javascript

a normal ASP.NET postback to happen here is how you do it without using any other libraries It is a little tricky though... i...

Performance differences between debug and release builds

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

and method arguments can stay stored in a CPU register without ever or less frequently being stored back to the stack frame...

Dynamic LINQ OrderBy on IEnumerable<T>

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

this question Just stumbled into this oldie... To do this without the dynamic LINQ library you just need the code as below. This..

VS2010 does not show unhandled exception message in a WinForms Application on a 64-bit version of Windows

http://stackoverflow.com/questions/4933958/vs2010-does-not-show-unhandled-exception-message-in-a-winforms-application-on-a

what happens is that the third line is just skipped without any message and the application keeps running. I don't have.. with a debugger attached your code will bomb as usual without one. Project Properties Build tab change Platform target to..

Use of Application.DoEvents()

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

. It is DoEvents that allows a dialog to be modal without it freezing the rest of the windows in the app. Most programmers..

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

This appears to be able to allow the using block again without the danger of masking a faulted state exception. So are there..

C#, int or Int32? Should I care?

http://stackoverflow.com/questions/62503/c-int-or-int32-should-i-care

a number of times that int is preferred over Int32 but without any reason given. So what is the reason Should I care c# variable..

Deep cloning objects in C#

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

copy an object so that the cloned object can be modified without any changes being reflected in the original object c# .net..

How can I detect the encoding/codepage of a text file

http://stackoverflow.com/questions/90838/how-can-i-detect-the-encoding-codepage-of-a-text-file

important fact. It does not make sense to have a string without knowing what encoding it uses. You can no longer stick your..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

tremendously but also be a source for nasty errors and without using Transactions a data dumping area. If you're even using..

Format XML String to Print Friendly XML String

http://stackoverflow.com/questions/1123718/format-xml-string-to-print-friendly-xml-string

'1.0' response error code '1' Success error response Without resorting to manually write the format function myself is there..

Implementing INotifyPropertyChanged - does a better way exist?

http://stackoverflow.com/questions/1315621/implementing-inotifypropertychanged-does-a-better-way-exist

inotifypropertychanged share improve this question Without using something like postsharp the minimal version I use uses..

try catch performance

http://stackoverflow.com/questions/1350264/try-catch-performance

double i c2 i 2 stopwatch2.Stop WriteLog String.Format Without try catch 0 stopwatch2.ElapsedMilliseconds The output I get.. The output I get With try catch 68 Without try catch 34 So it seems that using no try catch block seems.. i The difference is far less dramatic. With try catch 640 Without try catch 655 Am I doing something wrong here or is there a..

Converting XDocument to XmlDocument and vice versa

http://stackoverflow.com/questions/1508572/converting-xdocument-to-xmldocument-and-vice-versa

method to convert XML between XDocument and XmlDocument Without using any temporary storage in a file. c# xml linq to xml ..

Options for embedding Chromium instead of IE WebBrowser control with WPF/C#

http://stackoverflow.com/questions/18119125/options-for-embedding-chromium-instead-of-ie-webbrowser-control-with-wpf-c

Blink rendering engine new features added all the time. Without an internal Chromium knowledge this is going to be hard. share..

What's the difference between Application.ThreadException and AppDomain.CurrentDomain.UnhandledException?

http://stackoverflow.com/questions/2014562/whats-the-difference-between-application-threadexception-and-appdomain-currentd

in the Main method in Program.cs. Without that backstop in place the usual thing happens when a thread..

Why do we need boxing and unboxing in C#?

http://stackoverflow.com/questions/2111857/why-do-we-need-boxing-and-unboxing-in-c

only stores references to somethings that live somewhere. Without boxing you can not put an int into such a collection. But with..

Simple C# CSV Excel export class

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

fine Exports date and datetimes in timezone proof format Without further ado using System using System.Data.SqlTypes using System.IO..

What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?

http://stackoverflow.com/questions/2455654/what-additional-configuration-is-necessary-to-reference-a-net-2-0-mixed-mode

the latest version 4.0 to load your mixed mode assembly. Without this it will not work. Note that this only matters for mixed..

Convert webpage to image from ASP.NET

http://stackoverflow.com/questions/2715385/convert-webpage-to-image-from-asp-net

m_FileName string.Empty public WebsiteToImage string url Without file m_Url url public WebsiteToImage string url string fileName..

Pipe forwards in C#

http://stackoverflow.com/questions/336775/pipe-forwards-in-c-sharp

This is exactly what extension methods are for in C#. Without them we would have to write var n Enumerable.Select numbers..

Why does this simple .NET console app have so many threads?

http://stackoverflow.com/questions/3476642/why-does-this-simple-net-console-app-have-so-many-threads

have one thread and my intuition was backed up by this Without the debugger the process has only 4 threads. Surely any CLR..

Monitor a process's network usage?

http://stackoverflow.com/questions/438240/monitor-a-processs-network-usage

or C C Win32 to monitor a certain process's network usage Without that application being built by you obviously I would like to..

Should we select VB.NET or C# when upgrading our legacy applications? [closed]

http://stackoverflow.com/questions/507291/should-we-select-vb-net-or-c-sharp-when-upgrading-our-legacy-applications

number of legacy applications written in Visual Basic 6.0. Without casting aspersions on the developers who wrote them suffice..

Function profiling woes - Visual Studio 2010 Ultimate

http://stackoverflow.com/questions/5525758/function-profiling-woes-visual-studio-2010-ultimate

directly from the report file on the next analysis. Without symbol serialization analysis simply needs to perform the same..

Is String.Format as efficient as StringBuilder

http://stackoverflow.com/questions/6785/is-string-format-as-efficient-as-stringbuilder

faster than StringBuilder.AppendFormat Without benchmarking I'd probably say that the code sample above would..

forward traffic from port X to computer B with c# “UDP punch hole into firewall”

http://stackoverflow.com/questions/7225150/forward-traffic-from-port-x-to-computer-b-with-c-sharp-udp-punch-hole-into-fir

has probably got UPnP disabled hence your null reference. Without this your server cannot be made visible to inbound traffic as..

C# Events and Thread Safety

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

or Vance Morrison a while ago I can't remember which. Without the volatile modifier it's possible that the local copy taken..

What is the point of the ISerializable interface?

http://stackoverflow.com/questions/810974/what-is-the-point-of-the-iserializable-interface

for BinaryFormatter and perhaps for remoting purposes . Without it it uses the fields which can be inefficient if there are..

Why some types do not have literal modifiers

http://stackoverflow.com/questions/8671427/why-some-types-do-not-have-literal-modifiers

benefit to the feature state what the benefit is. Without a benefit to justify its costs the feature will not be implemented..