¡@

Home 

c# Programming Glossary: holding

References to variables in C#?

http://stackoverflow.com/questions/1420186/references-to-variables-in-c

question No. Putting unsafe code aside which does allow holding pointers to memory locations there's no way to store a reference..

How to properly clean up Excel interop objects

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

question Excel does not quit because your app is still holding references to COM objects. I guess you're invoking at least..

When should weak references be used?

http://stackoverflow.com/questions/1640889/when-should-weak-references-be-used

made an error in your book keeping something's still holding a reference that you forgot to remove. Using weak references..

How can I prevent CompileAssemblyFromSource from leaking memory?

http://stackoverflow.com/questions/1799373/how-can-i-prevent-compileassemblyfromsource-from-leaking-memory

creation of new types not really from any objects that I'm holding references to. Some of the web pages I've found have mentioned..

Mock static property with moq

http://stackoverflow.com/questions/2416362/mock-static-property-with-moq

a solution you can create a wrapper class Adapter Pattern holding the static property and fake its members. For example public..

indicate truncation in ToolTipStatusLabel automatically

http://stackoverflow.com/questions/2903172/indicate-truncation-in-tooltipstatuslabel-automatically

I have a .NET application with a StatusStrip holding three ToolTipStatusLabels. The Text of the labels are filled..

Accessing Excel Spreadsheet with C# occasionally returns blank value for some cells

http://stackoverflow.com/questions/298726/accessing-excel-spreadsheet-with-c-sharp-occasionally-returns-blank-value-for-so

Visual Studio 2008 and I view the extended properties by holding my mouse over the dr I can view the values of the DataRow but..

Weak references

http://stackoverflow.com/questions/310685/weak-references

references have gone out of scope. They can be useful for holding on to large objects that are expensive to initialize but should..

In C# would it be better to use Queue.Synchronized or lock() for thread safety?

http://stackoverflow.com/questions/338712/in-c-sharp-would-it-be-better-to-use-queue-synchronized-or-lock-for-thread-saf

than performance . Avoid calling into unknown code while holding a lock avoid nested locks etc. In .NET 4 there's a lot more..

How do events cause memory leaks in C# and how do Weak References help mitigate that?

http://stackoverflow.com/questions/3662842/how-do-events-cause-memory-leaks-in-c-sharp-and-how-do-weak-references-help-miti

eligible for garbage collection since newSource is still holding a reference to the event handler Listener.source_SomeEvent ...

Structs versus classes

http://stackoverflow.com/questions/3942721/structs-versus-classes

descendents collected aggressively as soon as the register holding onto it is not going to be read again. But the garbage collector..

Iterate over values in Flags Enum?

http://stackoverflow.com/questions/4171140/iterate-over-values-in-flags-enum

over values in Flags Enum If I have a variable holding a flags enum can I somehow iterate over the bit values in that..

Cross platform (php to C# .NET) encryption/decryption with Rijndael

http://stackoverflow.com/questions/4329260/cross-platform-php-to-c-sharp-net-encryption-decryption-with-rijndael

conversion from base64 to byte only. Remember base64 is holding the cyphered text that is binary data not string. Also please..

When is it acceptable to call GC.Collect?

http://stackoverflow.com/questions/478167/when-is-it-acceptable-to-call-gc-collect

a collect to prevent the soon to be idle process from holding on to more memory than needed. Are there any other cases where..

Fixed size queue which automatically dequeues old values upon new enques

http://stackoverflow.com/questions/5852863/fixed-size-queue-which-automatically-dequeues-old-values-upon-new-enques

for a shared data structure which purpose is holding the last N objects passed to it kind of history . Assume we..

How would you code an efficient Circular Buffer in Java or C#

http://stackoverflow.com/questions/590069/how-would-you-code-an-efficient-circular-buffer-in-java-or-c-sharp

overflow I would expect internally there would be an array holding the items and over time the head and tail of the buffer will..

Does a locked object stay locked if an exception occurs inside it?

http://stackoverflow.com/questions/590159/does-a-locked-object-stay-locked-if-an-exception-occurs-inside-it

lock never actually sees an exception. Of course you are holding the lock for the duration of a MessageBox which might be a problem...

Return DataReader from DataLayer in Using statement

http://stackoverflow.com/questions/850065/return-datareader-from-datalayer-in-using-statement

The down side is that it will be awkward for readers holding more than one result set but that is exceedingly rare. Update..

The process cannot access the file because it is being used by another process

http://stackoverflow.com/questions/877889/the-process-cannot-access-the-file-because-it-is-being-used-by-another-process

used by another process . How do I tell what process is holding on to the file I am thinking that it is McAfee but I need to.. question The problem was the MailMessage in .NET was holding on to the file attachments. I had to do a dispose on the attachment..