¡@

Home 

c# Programming Glossary: used

Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on

http://stackoverflow.com/questions/142003/cross-thread-operation-not-valid-control-accessed-from-a-thread-other-than-the

thread trying to change existing code as little as I can I used a background worker thread which will be loading the data and..

How to properly clean up Excel interop objects

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

me it was the excelApp.Worksheets object which I directly used without assigning it to a variable Worksheet sheet excelApp.Worksheets.Open..

Encrypt/Decrypt string in .NET

http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net

text to encrypt. param param name sharedSecret A password used to generate a key for encryption. param public static string.. return RijndaelManaged aesAlg null RijndaelManaged object used to encrypt the data. try generate the key from the shared secret.. aesAlg.Key aesAlg.IV Create the streams used for encryption. using MemoryStream msEncrypt new MemoryStream..

Randomize a List<T> in C#

http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp

right. There's nothing wrong with System.Random if it's used in the way it was intended. In my first example above I instantiate..

What is the difference between a field and a property in C#?

http://stackoverflow.com/questions/295104/what-is-the-difference-between-a-field-and-a-property-in-c

field different from a property and when should a field be used instead of a property c# properties field share improve this..

Why is it important to override GetHashCode when Equals method is overridden?

http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overridden

this question Yes it is important if your item will be used as a key in a dictionary or HashSet T etc since this is used.. as a key in a dictionary or HashSet T etc since this is used in the absense of a custom IEqualityComparer T to group items..

Casting vs using the 'as' keyword in the CLR

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

as but they're relatively obscure. I've almost certainly used is for the value type case before now not having thought of..

Use of Application.DoEvents()

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

of Application.DoEvents Can Application.DoEvents be used in C# Is this function a way to allow the GUI to catch up with.. async keywords. Inspired in small part by the trouble caused by DoEvents and threads but in large part by WinRT's api design..

What is the difference between Decimal, Float and Double in C#?

http://stackoverflow.com/questions/618535/what-is-the-difference-between-decimal-float-and-double-in-c

point type. The important thing to note is that humans are used to representing non integers in a decimal form and expect exact..

Deep cloning objects in C#

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

a deep copy of an object. Binary Serialization is used to perform the copy. summary public static class ObjectCopier..

What does the [Flags] Enum Attribute mean in C#?

http://stackoverflow.com/questions/8447/what-does-the-flags-enum-attribute-mean-in-c

share improve this question The flags attribute should be used whenever the enumerable represents a collection of flags rather.. set... Under the covers This works because you previously used multiples of two in you enumeration. Under the covers your enumeration..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

file io file locking share improve this question I've used this code for the past several years and I haven't had any issues..

Any way to turn the “internet off” in windows using c#?

http://stackoverflow.com/questions/1242566/any-way-to-turn-the-internet-off-in-windows-using-c

firewallRule.Description Used to block all internet access. firewallRule.Direction NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_OUT..

Syncing SQL Server 2008 Databases over HTTP using WCF & Sync Framework

http://stackoverflow.com/questions/1656652/syncing-sql-server-2008-databases-over-http-using-wcf-sync-framework

named anchor Added a table to track client Ids named guid Used SqlExpressClientSyncProvider available from MSF's codeplex project.. from MSF's codeplex project site as Client Sync Provider Used SqlSyncAdapterBuilder to build adapters for tables participating..

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

DecryptorTransform rm.CreateDecryptor this.Key this.Vector Used to translate bytes to text and vice versa UTFEncoder new System.Text.UTF8Encoding.. a byte array. Byte bytes UTFEncoder.GetBytes TextValue Used to stream the data in and out of the CryptoStream. MemoryStream..

Does using “new” on a strict allocate it on the heap or stack?

http://stackoverflow.com/questions/203695/does-using-new-on-a-strict-allocate-it-on-the-heap-or-stack

the value on the stack calls a parameterised constructor. Used for intermediate values e.g. for assignment to a field or use..

Domain Driven Design: Domain Service, Application Service

http://stackoverflow.com/questions/2268699/domain-driven-design-domain-service-application-service

those would belong to a Repository . Application Services Used by external consumers to talk to your system think Web Services.. they would be exposed here. Infrastructure Services Used to abstract technical concerns e.g. MSMQ email provider etc..

C# Object Pooling Pattern implementation

http://stackoverflow.com/questions/2510975/c-sharp-object-pooling-pattern-implementation

it significantly easier to implement a Least Recently Used freeing strategy which you said was out of scope but it's still..

How to determine total size of ASP.Net cache?

http://stackoverflow.com/questions/344210/how-to-determine-total-size-of-asp-net-cache

cache related counters Cache Machine Memory Limit Used Cache Process Memory Limit Used There are also a lot of other.. Cache Machine Memory Limit Used Cache Process Memory Limit Used There are also a lot of other cache related metrics under this..

Calculating Bandwidth

http://stackoverflow.com/questions/442409/calculating-bandwidth

.... private static string GetInstanceName Used Reflector to find the correct formatting string assemblyName..

Automatically INotifyPropertyChanged

http://stackoverflow.com/questions/527602/automatically-inotifypropertychanged

propertyInfo.Name Handler ObjectThatNotifies Used for example this way public class Employee INotifyPropertyChanged..

C#: Static readonly vs const

http://stackoverflow.com/questions/755685/c-static-readonly-vs-const

We have some classes which contains only constant values. Used for various things around in our system. So I am wondering if..

Parser for C#

http://stackoverflow.com/questions/81406/parser-for-c-sharp

From C# 1.0 to 3.0 Microsoft Public License. Used by Fxcop and Spec# Mono.Cecil From C# 1.0 to 3.0 open source..

Reading PDF documents in .Net [closed]

http://stackoverflow.com/questions/83152/reading-pdf-documents-in-net

share improve this question iTextSharp is the best bet. Used it to make a spider for lucene.Net so that it could crawl PDF...

C# classes to undelete files? [duplicate]

http://stackoverflow.com/questions/8819188/c-sharp-classes-to-undelete-files

the disk to get the information you want using ReadFile . Used to read in a file DllImport kernel32.dll public static extern.. ref uint lpNumberOfBytesRead IntPtr lpOverlapped Used to set the offset in file to start reading DllImport kernel32.dll..

Concatenate and minify JavaScript on the fly OR at build time - ASP.NET MVC

http://stackoverflow.com/questions/890561/concatenate-and-minify-javascript-on-the-fly-or-at-build-time-asp-net-mvc

asp ContentPlaceHolder ID AdditionalJS runat server body Used in a page like this which I'm happy with asp Content ID signUpContent..

What is the best or most interesting use of Extension Methods you've seen? [closed]

http://stackoverflow.com/questions/954198/what-is-the-best-or-most-interesting-use-of-extension-methods-youve-seen

String.Format tag tagName a 0 return new Memento a 0 Used like using Html.Tag ul this.Model.ForEach item using Html.Tag..