¡@

Home 

c# Programming Glossary: our

Simple 2 way encryption for C#

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

and Vector arrays You wouldn't want someone to figure out your keys by just assuming that you used this code as is All you.. UTFEncoder public SimpleAES This is our encryption method RijndaelManaged rm new RijndaelManaged Create.. RijndaelManaged Create an encryptor and a decryptor using our encryption method key and vector. EncryptorTransform rm.CreateEncryptor..

TransactionScope automatically escalating to MSDTC on some machines?

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

automatically escalating to MSDTC on some machines In our project we're using TransactionScope's to ensure our data access.. In our project we're using TransactionScope's to ensure our data access layer performs it's actions in a transaction. We're.. aiming to not require the MSDTC service to be enabled on our end user's machines. Trouble is on half of our developers machines..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

with particular objects. Also a static class can make your implementation simpler and faster because you do not have to.. hand in hand with the interface woes mentioned above. As our ability of interchanging implementations is very limited we'll.. wrap them up but it'll require us to change large parts of our code just to be able to accept wrappers instead of the actual..

C# String enums

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

2 StringValue SSO SINGLESIGNON 3 And off course I need something to retrieve that StringValue public static.. string output null Type type value.GetType Check first in our cached results... Look for our 'StringValueAttribute' in the.. Check first in our cached results... Look for our 'StringValueAttribute' in the field's custom attributes FieldInfo..

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

question At my previous job we struggled with getting our rich UI app to paint instantly and smoothly. We were using standard..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

c# struct share improve this question The source referenced by the OP has some credibility ...but what about.. use Reflector to see the code The 'JonnyCantCode.com' source got 3 out of 4 quite forgivable since #4 probably wouldn't.. since #4 probably wouldn't be an issue. If you find yourself boxing a struct rethink your architecture. Let's look at..

Proper use of the IDisposable interface

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

of the IDisposable interface is to clean up unmanaged resources. To me unmanaged means things like database connections sockets.. where the Dispose method is implemented to free managed resources which seems redundant to me since the garbage collector should.. Dictionary String Point Die clear it up free unmanaged resources public void Dispose _theList.clear _theDict.clear _theList..

Random row from Linq to Sql

http://stackoverflow.com/questions/648196/random-row-from-linq-to-sql

IsComposable true public Guid Random to prove not used by our C# code... throw new NotImplementedException Then just order.. this will do a random ordering at the SQL Server courtesy of NEWID . i.e. var cust from row in ctx.Customers where.. var cust from row in ctx.Customers where row.IsActive your filter orderby ctx.Random select row .FirstOrDefault Note that..

Deep cloning objects in C#

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

on The Code Project a while ago and incorporated it in our stuff. As mentioned elsewhere it does require your objects to.. it in our stuff. As mentioned elsewhere it does require your objects to be serializable. using System using System.IO using.. T The type of object being copied. typeparam param name source The object instance to copy. param returns The copied object...

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

can I detect the encoding codepage of a text file In our application we receive text files .txt .csv etc. from diverse.. we receive text files .txt .csv etc. from diverse sources. When reading these files sometimes contain garbage because.. ASCII code pages like ibm850 windows1252. Thanks for your answers this is what I've done. The files we receive are from..

How performant is StackFrame?

http://stackoverflow.com/questions/1348643/how-performant-is-stackframe

hit of using Reflection to lookup the method name. Our options were to either require more code in every method and..

Is a program F# any more efficient (execution-wise) than C#? [closed]

http://stackoverflow.com/questions/142985/is-a-program-f-any-more-efficient-execution-wise-than-c

functions to be completely inlined and type specialized. Our F# for Numerics note commercial license site owned by author..

IIS WCF service hosting vs Windows Service

http://stackoverflow.com/questions/1560619/iis-wcf-service-hosting-vs-windows-service

We developed a WCF service and we're looking to deploy it. Our clients will be using it with basicHttpBinding but our internal..

TransactionScope automatically escalating to MSDTC on some machines?

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

change in data I'm pretty sure we've found our problem. Our SQL2008 developers weren't experiencing the problem because..

Routing with Multiple Parameters using ASP.NET MVC

http://stackoverflow.com/questions/2246481/routing-with-multiple-parameters-using-asp-net-mvc

with Multiple Parameters using ASP.NET MVC Our company is developing an API for our products and we are thinking..

Sharepoint web services — The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'

http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti

IIS settings. I believe our IIS server version is IIS 7.0. Our Sharepoint Server is anticipating requests via NTLM. Our Sharepoint.. Our Sharepoint Server is anticipating requests via NTLM. Our Sharepoint Server is on the same domain as my client computer...

“Treat all warnings as errors except…” in Visual Studio

http://stackoverflow.com/questions/267168/treat-all-warnings-as-errors-except-in-visual-studio

prevent my code from compiling if there are any warnings. Our team uses this option but there are two warnings we would like..

how to make a wizard with ASP.Net MVC

http://stackoverflow.com/questions/297148/how-to-make-a-wizard-with-asp-net-mvc

to make a wizard with ASP.Net MVC Our site has multiple wizards where various data is collected over..

Why is ValueType.GetHashCode() implemented like it is?

http://stackoverflow.com/questions/3841602/why-is-valuetype-gethashcode-implemented-like-it-is

implemented like it is From ValueType.cs Action Our algorithm for returning the hashcode is a little bit complex...

Comparison of XSD Code Generators

http://stackoverflow.com/questions/386155/comparison-of-xsd-code-generators

i would provide an updated answer that relates to VS2010 . Our main driver was that xsd.exe does not generate XML doc from..

I need a fast runtime expression parser

http://stackoverflow.com/questions/4392022/i-need-a-fast-runtime-expression-parser

see somewhere in the vicinity of 100 requests a second. Our current pages tend to execute in under 50ms. Usually there will..

Stroke Width Transform (SWT) implementation (Java, C#…)

http://stackoverflow.com/questions/4837124/stroke-width-transform-swt-implementation-java-c

projects final results group_of_arp86_sk2357 Writeup.pdf Our code https sites.google.com site roboticssaurav strokewidthnokia..

When to use struct in C#?

http://stackoverflow.com/questions/521298/when-to-use-struct-in-c

consistently violates those rules Okay #2 and #3 anyway. Our beloved dictionary has 2 internal structs StructLayout LayoutKind.Sequential..

Difference between events and delegates and its respective applications

http://stackoverflow.com/questions/563549/difference-between-events-and-delegates-and-its-respective-applications

to use which What are the advantages and disadvantages Our code is heavily rooted with events and I want to get to the..

Which .NET Memcached client do you use, EnyimMemcached vs. BeITMemcached? [closed]

http://stackoverflow.com/questions/694928/which-net-memcached-client-do-you-use-enyimmemcached-vs-beitmemcached

requests average web site concurrency load 16 20 requests. Our performance factor was measuring the time from making the request..

How do you manage .NET app.config files for large applications?

http://stackoverflow.com/questions/89245/how-do-you-manage-net-app-config-files-for-large-applications

assemblies has settings or configuration information. Our team tends to like the VS settings editor and the easy to use..

How can I ensure that a division of integers is always rounded up?

http://stackoverflow.com/questions/921180/how-can-i-ensure-that-a-division-of-integers-is-always-rounded-up

towards zero . So write a specification for that function. Our function int DivRoundUp int dividend int divisor must have behaviour..

Understanding WCF Windows Authentication

http://stackoverflow.com/questions/9588265/understanding-wcf-windows-authentication

their desktops using their active directory credentials. Our service is hosted in a windows server named œSERV1 . Is only..

Reading 64bit Registry from a 32bit application

http://stackoverflow.com/questions/974038/reading-64bit-registry-from-a-32bit-application

I have a c# unit test project that is compiled for AnyCPU. Our build server is a 64bit machine and has a 64bit SQL Express..