c# Programming Glossary: patterns
URL mapping with C# HttpListener http://stackoverflow.com/questions/10017564/url-mapping-with-c-sharp-httplistener .ProcessRequest .Start Is it possible to map specific URL patterns to different behaviour I want achieve a REST style server i.e...
Refactoring code to avoid anti-pattern http://stackoverflow.com/questions/11224170/refactoring-code-to-avoid-anti-pattern how can i avoid code fragmentation c# .net design patterns domain driven design cqrs share improve this question I..
C# HttpWebRequest command to get directory listing http://stackoverflow.com/questions/124492/c-sharp-httpwebrequest-command-to-get-directory-listing an external source for mapping URL to regular expression patterns if you plan to enhance the parsing module with new sites support..
C# producer/consumer http://stackoverflow.com/questions/1656404/c-sharp-producer-consumer Monitor.Wait listLock return queue.Dequeue c# design patterns monitor producer consumer share improve this question The..
MVP examples for Windows Forms http://stackoverflow.com/questions/185993/mvp-examples-for-windows-forms get a nice dose of MVP along with some other smart client patterns such as Pub Sub . http codebetter.com blogs jeremy.miller archive..
Why does C# not provide the C++ style 'friend' keyword? http://stackoverflow.com/questions/203616/why-does-c-sharp-not-provide-the-c-style-friend-keyword complete access to exactly one other class c# c design patterns oop friend share improve this question Having friends in..
Dependency Inject (DI) “friendly” library http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library actually simple to do once you understand that DI is about patterns and principles not technology. To design the API in a DI Container..
C# Object Pooling Pattern implementation http://stackoverflow.com/questions/2510975/c-sharp-object-pooling-pattern-implementation objects at the creation of the pool itself. c# design patterns pooling share improve this question This question is a little..
Repository pattern tutorial in C# [closed] http://stackoverflow.com/questions/3175/repository-pattern-tutorial-in-c-sharp good tutorial on repository pattern usage in C# c# patterns repository pattern share improve this question A good place..
Task parallel library replacement for BackgroundWorker? http://stackoverflow.com/questions/3513432/task-parallel-library-replacement-for-backgroundworker BackgroundWorker but I'm wondering if there are some TPL patterns that can be used instead c# winforms backgroundworker task..
Question about terminating a thread cleanly in .NET http://stackoverflow.com/questions/3632149/question-about-terminating-a-thread-cleanly-in-net in the TPL. It is still based on cooperative cancellation patterns. You need to get a CancellationToken and the periodically check..
Why and How to avoid Event Handler memory leaks? http://stackoverflow.com/questions/4526829/why-and-how-to-avoid-event-handler-memory-leaks to the same event handler enough Are there common design patterns or best practices for handling situations like this Example.. already built big application Thanks in advance c# design patterns memory leaks event handling share improve this question ..
How to get the word under the cursor in Windows? http://stackoverflow.com/questions/4665045/how-to-get-the-word-under-the-cursor-in-windows has a different support for various UI automation patterns . For example there is the Value pattern and the Text pattern..
Casting vs using the 'as' keyword in the CLR http://stackoverflow.com/questions/496096/casting-vs-using-the-as-keyword-in-the-clr the 'as' keyword in the CLR I'm learning about design patterns and because of that I've ended using a lot of interfaces. One..
WPF MVVM Newbie - how should the ViewModel close the form? http://stackoverflow.com/questions/501886/wpf-mvvm-newbie-how-should-the-viewmodel-close-the-form behaviors just to avoid a one line method in the name of patterns and purity is a bit ridiculous.... c# wpf mvvm share improve..
Reading PDF documents in .Net [closed] http://stackoverflow.com/questions/83152/reading-pdf-documents-in-net return private string CleanupContent string text string patterns @ @ @ 226 @ 222 @ 223 @ 224 @ 340 @ 342 @ 344 @ 300 @ 302 @.. ë ò ô ö ì î ï ç ù û ü ® « » © ' for int i 0 i patterns.Length i string regExPattern patterns i Regex regex new Regex.. © ' for int i 0 i patterns.Length i string regExPattern patterns i Regex regex new Regex regExPattern RegexOptions.IgnoreCase..
C# Finalize/Dispose pattern http://stackoverflow.com/questions/898828/c-sharp-finalize-dispose-pattern a class that uses IDisposable generally you should use two patterns When implementing a sealed class that doesn't use unmanaged..
What is quicker, switch on string or elseif on type? http://stackoverflow.com/questions/94305/what-is-quicker-switch-on-string-or-elseif-on-type of types being compared and the relative frequency and any patterns in the underlying data. The simple answer is that nobody can..
How to get only time from date-time C# http://stackoverflow.com/questions/1026841/how-to-get-only-time-from-date-time-c-sharp
Design - Where should objects be registered when using Windsor http://stackoverflow.com/questions/1410719/design-where-should-objects-be-registered-when-using-windsor Humble Executable a term from the excellent xUnit Test Patterns that doesn't need unit testing in itself. Your tests should..
What are regular expression Balancing Groups? http://stackoverflow.com/questions/17003799/what-are-regular-expression-balancing-groups not perfect or entirely correct though. Finale Conditional Patterns There is one more catch this does not ensure that the stack..
C# FileStream : Optimal buffer size for writing large files? http://stackoverflow.com/questions/1862982/c-sharp-filestream-optimal-buffer-size-for-writing-large-files
Best Data Access Layer for .NET [duplicate] http://stackoverflow.com/questions/200279/best-data-access-layer-for-net is a good book by Martin Fowler specifically on Enterprise Patterns at Amazon . I recommend looking specifically at the Data Mapper..
Why does C# not provide the C++ style 'friend' keyword? http://stackoverflow.com/questions/203616/why-does-c-sharp-not-provide-the-c-style-friend-keyword elegant as using the friend keyword. The original Design Patterns book uses it regularly throughout its examples. So in summary..
Dependency Inject (DI) “friendly” library http://stackoverflow.com/questions/2045904/dependency-inject-di-friendly-library is actually a quote from memory though from Design Patterns but it should always be your real goal . DI is just a means..
How to Compare two objects in unit test? http://stackoverflow.com/questions/2046121/how-to-compare-two-objects-in-unit-test question What you are looking for is what in xUnit Test Patterns is called Test Specific Equality . While you can sometimes choose..
Why use MVVM? http://stackoverflow.com/questions/2653096/why-use-mvvm place before even trying to add new features. Follow up Patterns and best practices will actually slow down initial development..
Beginners book for .NET and C#? [closed] http://stackoverflow.com/questions/2994959/beginners-book-for-net-and-c
Repository pattern tutorial in C# [closed] http://stackoverflow.com/questions/3175/repository-pattern-tutorial-in-c-sharp A good place is the book Applying Domain Driven Design and Patterns by Jimmy Nilsson My blog post Using the unit of work per request..
How to change button text for Yes & No buttons on MessageBox.Show Dialog? http://stackoverflow.com/questions/4264664/how-to-change-button-text-for-yes-no-buttons-on-messagebox-show-dialog is my code DialogResult dlgResult MessageBox.Show Patterns have been logged successfully Logtool MessageBoxButtons.YesNo..
When do you use reflection? Patterns/anti-patterns http://stackoverflow.com/questions/429962/when-do-you-use-reflection-patterns-anti-patterns do you use reflection Patterns anti patterns I understand the reflection API in c# but I am..
Design Patterns with C# [closed] http://stackoverflow.com/questions/4323809/design-patterns-with-c-sharp Patterns with C# closed I am planning to learn C# on the job a moderately.. this question An excellent book is Head First Design Patterns . Easy to understand and follow and a fun read. The GoF book..
Where can I find a free C# eBook? [closed] http://stackoverflow.com/questions/467986/where-can-i-find-a-free-c-sharp-ebook
Best way to parse command line arguments in C#? [closed] http://stackoverflow.com/questions/491595/best-way-to-parse-command-line-arguments-in-c pretty ugly. So I'm interested in Libraries that you use Patterns that you use Assume the commands always adhere to common standards..
Patterns for Compensating Lack of Inheritance in SOA http://stackoverflow.com/questions/9478015/patterns-for-compensating-lack-of-inheritance-in-soa for Compensating Lack of Inheritance in SOA I find Inheritance..
Understanding Data Outside Of Service : SOA http://stackoverflow.com/questions/9483286/understanding-data-outside-of-service-soa with examples READING Principles of Service Design Service Patterns and Anti Patterns http msdn.microsoft.com en us library ms954638.aspx.. Principles of Service Design Service Patterns and Anti Patterns http msdn.microsoft.com en us library ms954638.aspx c# .net..
|