Upcoming C# stories

Use Capped collection on MongoAppender for Log4Net(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 21 hours, 31 minutes ago

How to create Capped Collection with C# code, to make log4Net appender directly create capped collection if the collection does not already exists read more...

add a comment |category: |Views: 1

tags: another

Controlling JPEG Compression(www.blackbeltcoder.com)

submitted by scwebgroupscwebgroup(332) 7 days, 9 hours ago

Here's some sample C# code that demonstrates how to control compression/quality level when saving JPEG files. read more...

add a comment |category: |Views: 2

tags: another

Disabling the Screensaver Programmatically(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 8 days, 14 hours ago

Screensavers can be a useful tool for protecting some types of display from damage or a visually pleasing alternative to the open windows when a computer is not in use. For some types of software it is necessary to temporarily disable the screensaver. read more...

add a comment |category: |Views: 1

tags: another

Why use generics in C# dot net(techsamosa.com)

submitted by ankygoyalankygoyal(514) 12 days ago

This article briefly describes the main benefits of using generics in c# read more...

2 comments |category: |Views: 14

tags: another

Embed User Controls in Custom Server Controls. The best of both worlds(www.keivansadra.com)

submitted by techiemaetechiemae(64) 17 days, 17 hours ago

User Controls can be reused across one website or web application, however, they are easier to write than Custom Server Controls, which can be reused across multiple websites and web applications. This article shows you how to combine the ease of writing of User Controls and the reusability of Custom Server Controls. read more...

add a comment |category: |Views: 1

tags: another

Getting the list of Type associated to a given export in MEF(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 17 days, 18 hours ago

In this post I explain how to find concrete types imported by MEF for a given Export Type. This functionality is not directly exposed by MEF, but you can find it simply iterating inside ComposableParts and metadata of a Container. read more...

add a comment |category: |Views: 5

tags: another

instantiate WCF host class with MEF in a request/response service(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 17 days, 19 hours ago

This is the fourth part of a series that explain how to build a super simple Request/Response service with WCF. In this fourth part I explain how to configure WCF to create instance of the service with MEF, to discover all the request handlers at runtime. read more...

add a comment |category: |Views: 1

tags: another

Test Driven Design By Example(www.makecodingeasy.com)

submitted by stevevaubellstevevaubell(95) 18 days, 19 hours ago

We have started using Test Driven Design (hopefully properly) over the last few months and I wanted to share our experiences of it. Before we started using TDD our approach to unit testing was to find a unit of work that we had just completed and write a test to make sure the output of the method was what we expected. The most obvious problem with this is that while we are hoping that the unit test will be testing the method, actually what we were doing was testing the method and everything that used it. So in this case we were testing any service calls, database calls, any other classes and objects that are used in the method. read more...

add a comment |category: |Views: 12

tags: another

Detecting Power Events(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 19 days, 20 hours ago

Microsoft Windows raises notifications in response to power events, including when the user sleeps, hibernates or resumes the computer, or when the power supply switches between battery mode and A/C power. The notifications can be detected using events. read more...

add a comment |category: |Views: 5

tags: another

An Extensible Appointment Scheduling Library(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 26 days, 13 hours ago

Scheduling software can be used to plan future appointments, including those appointments that repeat on a regular basis. This article describes a library with four types of scheduling rule and the potential for additional rules to be incorporated. read more...

add a comment |category: |Views: 13

tags: another

Creating my own dependency injection system II(dotnettravels.blogspot.com)

submitted by MaartenMaarten(65) 27 days, 17 hours ago

In the previous post I showed a very basic DI system. Several things can be added to it, and today I will show how to add binding scopes. What is a binding scope? A binding scope is an indication of when and how the created instances of the DI system should be re-used. read more...

add a comment |category: |Views: 14

tags: another

Request Response service, separate contract and business logic(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 28 days, 20 hours ago

The third part of a series of articles devoted to the creation of a basic Request/response service in WCF. In this article I show how to use MEF to automatic load the handlers for the requests. read more...

add a comment |category: |Views: 3

tags: another

C#/.NET Little Wonders: The Enumerable.Range() Static Method(www.blackrabbitcoder.net)

submitted by BlackRabbitCoderBlackRabbitCoder(661) 29 days, 11 hours ago

The Enumerable.Range() method performs a very simple function, but it’s results can be used to drive much more complex LINQ expressions. Feel free to use it for generating simple int sequences all the way to generating sequences of a repeated action. Either way, it’s a good tool to keep handy. read more...

1 comment |category: |Views: 10

tags: another

Adding Lists and Tables to XML Documentation(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 29 days, 17 hours ago

Bullet lists, numbered lists and tables provide useful ways to provide information about the use of a framework, a single class or a member. These ways of displaying data can be included in XML documentation comments and compiled into help files. read more...

add a comment |category: |Views: 2

tags: another

Visual Debugging Experience in Modern IDEs(eknowledger.wordpress.com)

submitted by eknowledgereknowledger(156) 1 month, 1 day ago

A collaboration between Brown University (Where Code Bubbles was born) and Microsoft Research, integrating ideas from Brown University’s Code Bubbles project into Visual Studio result Debugger Canvas as a new power tool for Visual Studio that enable Code Bubbles Like experience, it enable visual debugging experience based on code bubbles on a 2-D canvas which in return I believe it will greatly increase developer productivity and understanding of the code set. read more...

add a comment |category: |Views: 10

tags: another

How to determine whether an assembly is 32 bit, 64 bit or AnyCPU.(www.angryhacker.com)

submitted by rgelbrgelb(250) 1 month, 1 day ago

With proliferation of libraries around the .NET world, sometimes you need to determine how the DLL was compiled or even whether it’s managed or not. 32 bit or 64 or AnyCPU. read more...

add a comment |category: |Views: 4

tags: another