¡@

Home 

c# Programming Glossary: strategy

When to Use Static Classes in C#

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

This renders us unable to use static classes as part of a strategy pattern. We might patch some issues up by passing delegates..

How can I protect my .NET assemblies from decompilation?

http://stackoverflow.com/questions/2478230/how-can-i-protect-my-net-assemblies-from-decompilation

more people who will be willing to pay for it. A better strategy is to assume that your product will be pirated and think about..

C# Object Pooling Pattern implementation

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

have a good resource on implementing a shared object pool strategy for a limited resource in vein of Sql connection pooling ie.. to have a few main settings including Resource loading strategy eager or lazy Resource loading mechanism how to actually construct.. loading mechanism how to actually construct one Access strategy you mention round robin which is not as straightforward as it..

Reading PDF content with itextsharp dll in VB.NET or C#

http://stackoverflow.com/questions/2550796/reading-pdf-content-with-itextsharp-dll-in-vb-net-or-c-sharp

page pdfReader.NumberOfPages page ITextExtractionStrategy strategy new SimpleTextExtractionStrategy string currentText PdfTextExtractor.GetTextFromPage.. PdfTextExtractor.GetTextFromPage pdfReader page strategy currentText Encoding.UTF8.GetString ASCIIEncoding.Convert Encoding.Default..

x86/x64 CPUID in C#

http://stackoverflow.com/questions/3216535/x86-x64-cpuid-in-c-sharp

0x200 WRITECOMBINE_Modifierflag 0x400 Basic ASM strategy void x86CpuId int level byte buffer eax level cpuid buffer..

Entity Framework Code Only error: the model backing the context has changed since the database was created

http://stackoverflow.com/questions/3552000/entity-framework-code-only-error-the-model-backing-the-context-has-changed-sinc

instance. For example the RecreateDatabaseIfModelChanges strategy will automatically delete and recreate the database and optionally..

Question about terminating a thread cleanly in .NET

http://stackoverflow.com/questions/3632149/question-about-terminating-a-thread-cleanly-in-net

the same which is to use a volatile bool approach checking strategy which is nice but I still have a few questions.... Immediately..

Windows Impersonation from C#

http://stackoverflow.com/questions/559719/windows-impersonation-from-c-sharp

Note if a password is mandatory is there a recommended strategy for storing a password securely c# and or vbscript . c# windows..

Difference between events and delegates and its respective applications

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

want to sort a List of objects I can provide a Comparator strategy to the method to tell the implementation how to compare two..

Creating an MVVM friendly dialog strategy

http://stackoverflow.com/questions/6595312/creating-an-mvvm-friendly-dialog-strategy

an MVVM friendly dialog strategy I'm trying to create a strategy for handling popup forms for.. an MVVM friendly dialog strategy I'm trying to create a strategy for handling popup forms for use throughout any part of my application...

Tree data structure in C#

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

used to provide this functionality Perhaps through a strategy pattern to solve the issues presented in the article. I feel..

If strings are immutable in .NET, then why does Substring take O(n) time?

http://stackoverflow.com/questions/6742923/if-strings-are-immutable-in-net-then-why-does-substring-take-on-time

room on the heap in the first place. So using a persistent strategy that encourages reuse of most of the memory is also not a win..

Free obfuscation tools for .NET [closed]

http://stackoverflow.com/questions/805549/free-obfuscation-tools-for-net

Check out this SO question Best .NET obfuscation tools strategy Since June 29 2012 the software is now commercial. The last..

General Exception Handling Strategy for .NET

http://stackoverflow.com/questions/1050282/general-exception-handling-strategy-for-net

Exception Handling Strategy for .NET I ™m used to having try catch blocks in every method...

Making Entity Class Closed for Changes

http://stackoverflow.com/questions/11425993/making-entity-class-closed-for-changes

CouponValue should be zero . Refer Refactoring code using Strategy Pattern also. Note I am using .Net 4.0 Reference Getting an.. with Entity Framework Refactoring code using Strategy Pattern Prefer composition over inheritance EF 4.1 Code first.. over inheritance EF 4.1 Code first vs Model Database first Strategy Pattern and Dependency Injection using Unity C# Strategy Design..

Get all associate/composite objects inside an object (in Abstract way)

http://stackoverflow.com/questions/11470037/get-all-associate-composite-objects-inside-an-object-in-abstract-way

4 inheriting vs extending How to choose an Inheritance Strategy http blogs.msdn.com b alexj archive 2009 04 15 tip 12 choosing..

Strategy for cross-language (java and c#) object serialization

http://stackoverflow.com/questions/2001405/strategy-for-cross-language-java-and-c-object-serialization

for cross language java and c# object serialization I'm working..

Check if SQL server (any version) is installed?

http://stackoverflow.com/questions/2381055/check-if-sql-server-any-version-is-installed

C# Using Activator.CreateInstance

http://stackoverflow.com/questions/5262693/c-sharp-using-activator-createinstance

a question yesterday regarding using either reflection or Strategy Pattern for dynamically calling methods. However since then..

Difference between events and delegates and its respective applications

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

In particular they are a perfect way to implement the Strategy Pattern . For example if I want to sort a List of objects I..

Querying an LDAP

http://stackoverflow.com/questions/6452531/querying-an-ldap

in RFC 1823 specifies Microsoft support it see MS Strategy for Lightweight Directory Access Protocol LDAP . You'll find..

How to find the actual printable area? (PrintDocument)

http://stackoverflow.com/questions/8761633/how-to-find-the-actual-printable-area-printdocument

in code don't offer a choice to the user . Alternative Strategy Alright so maybe you don't want to just get the hard margins..