News in the Category: C# Subscribe to the rss of this category.

Total posts: 1078 | Sort by Views | Sort by Hits

C# 4.0 PowerPoint Presentations

C# Frequently Asked Questions, July 27, 2010
Views: 134 | Hits 46

Alexandru Ghiondea from the C# team created an excellent deck of slides that he used at Microsoft Days 2010 in Bulgaria. The C# team reused the deck several times for User Groups' presentations and ta...

How To Override ToString() in a Simple C# Class

peterkellner.net, July 26, 2010
Views: 147 | Hits 50

So, you have a simple class that has a bunch public properties and you want to be able to use ToString() on it to show some data?  Its easy.  All you have to do is override the ToString() class inside...

VALUES() and Long Parameter Lists

Simple Talk, July 22, 2010
Views: 6 | Hits 2

To make progress as a relational Database programmer, you have to think in terms of sets, rather than lists, arrays or sequential data. Until that point, you'll feel the need to pass lists, arrays and...

WP7 Gesture Recognizer and Behavior / Triggers

Clarity Blogs: ASP.NET, July 19, 2010
Views: 134 | Hits 8

Here is a quick gesture recognizer I wrote for the Windows Phone 7.  You can use the gesture recognizer standalone in code and attach to a UI element or you can also use the behavior + trigger.&#...

Takes the Custom Auth project to completion with an Add Favorites MongoDb web site

EggHeadCafe.com New Articles, July 17, 2010
Views: 143 | Hits

Building on a previous implementation of Custom Authentication with MongoDb, and adding a "Favorites Tracker". The result is basically an entire web site built around MongoDb and the NoRM C# driver....

Implementing method override covariance on C# (Part 1)

Simple Talk, July 14, 2010
Views: 117 | Hits 22

It has been said by many people that C# is 'Java done right'. However, there is one feature not included in C# that I do miss from my time in Java - method override covariance - so I decided to see if...

Ruby: initialize and super

K. Scott Allen, July 13, 2010
Views: 132 | Hits 12

One of the reasons to like Ruby if you come from a C#/C++/Java background is how certain constructs will tend to "just make sense" even though Ruby will throw in a twist here and there. Consider th...

Named Arguments versus Object Initializers

K. Scott Allen, July 7, 2010
Views: 185 | Hits 49

The object initializer syntax introduced in C# makes it easy to work with "configuration" type objects. public class TemperatureSetting { public float Value { get; set; } public float Vari...

Oh yeah, CallStream is great to express monads

More Whidbey stuff, July 1, 2010
Views: 30 | Hits 6

It has been pointed out by several commenters that CallStream was a reinvention of monads. Not quite so, but the nuance is subtle. CallStream is a pattern to express chain-callable APIs. That makes i...

Wiimote Virtual Room Designer

MSDN: Coding4Fun, June 21, 2010
Views: 15 | Hits 1

In this article, Thijs Brilleman demonstrates how to create, using C# and XNA, a room designer from a mash-up of cheap components. Thijs Brilleman University of Twente, The Netherlands Code It:...

Null Or Empty Coalescing

youve been HAACKED, June 17, 2010
Views: 219 | Hits 46

In my last blog post, I wrote about the proper way to check for empty enumerations and proposed an IsNullOrEmpty method for collections which sparked a lot of discussion. This post covers a similar i...

How I understood monads, part 1/2: sleepless and self-loathing in Seattle

More Whidbey stuff, June 16, 2010
Views: 175 | Hits 25

For some time now, I had been noticing some interest for monads, mostly in the form of unintelligible (to me) blog posts and comments saying oh, yeah, thats a monad about random stuff as if it were a...

Printing Tip Handling User Initiated Dialogs Exceptions

JohnPapa.net, June 14, 2010
Views: 216 | Hits 18

I see this question every so often so it makes sense to share it through a quick post. When using the print API in Silverlight 4 you can run into the dreaded exception: System.Security.SecurityExc...

Isolated Storage Made Easy

HackingSilverlight, June 4, 2010
Views: 224 | Hits 41

In its most simple form Isolated Storage allows you to save name value pairs and retrieve them at some other time the next time your app runs. Granted we could get into XML and text files etc but I'm ...

My Inbox: How to save changes coming from disconnected POCOs

Julia Lerman Blog - Dont Be Iffy..., June 3, 2010
Views: 187 | Hits 22

I receive a lot of random emails from developers with Entity Framework questions. (This is not a request for more! :)) If I’m too busy to even look or if it’s something I can’t ...

Setting up PayPal Instant Payment Notification(IPN) with C#

The Code Project Latest Articles, May 29, 2010
Views: 329 | Hits 52

Sample working C# code to carry the IPN...

DotNetNuke source in C#. Yeah, Really.

Joe Brinkman, May 27, 2010
Views: 179 | Hits 14

Shaun first launched DotNetNuke on December 24, 2002. I dont think its a stretch to suggest that the first inquiry about a C# version came in on about December 25. And they have continued to come in o...

Free C# Online Classes

ASP.NET Announcements, May 26, 2010
Views: 423 | Hits 135

Now you can learn C language online from expert teachers of WiZiQ. These are Free Online Classes on C# which are scheduled on different timings. You can join the class as per your convenience.  B...

Programmatically Retrieve a System's Logical Drive Information with C#

DevX: .NET Feed, May 21, 2010
Views: 244 | Hits 29

Use C# and the System.Management namespace to retrieve information about logical drives in a given system....

Right click Menu using Jquery asp.net using csharp

The Code Project Latest Articles, May 18, 2010
Views: 348 | Hits 77

Jquery Context Menu control....

Shows how to use the new Tasks namespace to download multiple documents in parallel.

EggHeadCafe.com New Articles, May 15, 2010
Views: 245 | Hits

In C# 4.0, Task parallelism is the lowest-level approach to parallelization with PFX. The classes for working at this level are defined in the System.Threading.Tasks namespace.  read moreBy Peter Brom...

Augmented Reality Domino Knock-Down Game

MSDN: Coding4Fun, May 14, 2010
Views: 20 | Hits 2

This article provides step-by-step instructions about how to create a simple, yet interesting, augmented reality game called domino knock-down game using an open source framework called Goblin XNA. ...

Mocking property sets

Mehfuzs WebLog, May 14, 2010
Views: 276 | Hits 31

In this post, i will be showing how you can mock property sets with your expected values or even action using JustMock. To begin, we have a sample interface: public interface IFoo { int Value { g...

In recent years, CPU clock speed increases have reached a plateau, and manufacturers have focused instead on increasing core counts. This is an issue for us as developers since our typical single-thre

EggHeadCafe.com New Articles, May 8, 2010
Views: 243 | Hits 1

Summary with examples on Parallel and PLINQ programming in C# 4.0  read moreBy Peter Bromberg...

REST to Objects in C#

Steven Smith, May 7, 2010
Views: 343 | Hits 36

RESTful interfaces for web services are all the rage for many Web 2.0 sites.  If you want to consume these in a very simple fashion, LINQ to XML can do the job pretty easily in C#.  If you g...

Create JSON From C# using json Library

The Code Project Latest Articles, May 5, 2010
Views: 370 | Hits 106

Create JSON From C# using json library available at codeplex...

Upcoming Script# Release and LIDNUG presentation

Nikhil Kotharis Weblog, May 4, 2010
Views: 293 | Hits 36

A quick heads up on a Script# presentation for the Linked.NET user group on LinkedIn, and some words (ummm... teasers) on the upcoming script# release...[Full post continued here...]...

Generating Sound Waves with C# Wave Oscillators

MSDN: Coding4Fun, May 3, 2010
Views: 15 | Hits 1

For the longest time, Ive been baffled by the concept of sound in computing. How in the world is sound store? How is it played back? In classic Coding4Fun style, well learn by doing in this articleby ...

Building your own game controller!

MSDN: Coding4Fun, April 28, 2010
Views: 16 | Hits 1

Donn Morse created a slightly modified version of the XNA Racing Game Starter Kit to work with a custom game controller that has an accelerometer! The sample driver supports communication between...

Wiki .NET Parser, C#

The Code Project Latest Articles, April 28, 2010
Views: 289 | Hits 50

Wiki .NET Parser C#, 3 (4) files with lexer, grammar, parser definition and ANTLR engine...

C# Adds Optional and Named Arguments

4GuysFromRolla.com Headlines, April 28, 2010
Views: 230 | Hits 28

Earlier this month Microsoft released Visual Studio 2010, the .NET Framework 4.0 (which includes ASP.NET 4.0), and new versions of their core programming languages: C# 4.0 and Visual Basic 10. In des...

Coding4Fun - Photos Near You

MSDN: Coding4Fun, April 27, 2010
Views: 14 | Hits 1

Hate changing your desktop background manually? Change it automatically with pictures from Flickr! Arian T. Kulp http://www.ariankulp.com Code It: DownloadDifficulty: Intermediate Time Required: ...

ReSharper 5.0 Adds New Add Parameter Refactoring

peterkellner.net, April 26, 2010
Views: 103 | Hits 9

In this post, Ill show a simple example of how when you add a parameter to C# method, ReSharper gives you a simple prompting to ask if you want to add a parameter to your method, or create an overload...

PowerShell Control over Nikon D3000 Camera

Steven Smith, April 26, 2010
Views: 321 | Hits 14

My wife got me a Nikon D3000 camera for Christmas last year, and Im loving it but still trying to wrap my head around some of its features.  For instance, when you plug it into a computer via USB...

Effective C# Second Edition Book Review

EggHeadCafe.com New Articles, April 18, 2010
Views: 332 | Hits

In Effective C#, Bill has identified 50 different areas in which you can improve your usage of the C# language, and this includes new features of C# 4.0. This is not a language tutorial book - you can...

XNA Effects ASCII Art in 3D

MSDN: Coding4Fun, April 14, 2010
Views: 14 | Hits 1

In this article, Ill demonstrate how to create a post-processing effect to turn 3D renders into ASCII Art. Louis Ingenthron FV Productions ...

Get Ready For C# 4.0!

C# Frequently Asked Questions, April 12, 2010
Views: 47 | Hits 3

Visual Studio 2010 is here! And of course this means that C# 4.0 is also here. Lets do a quick review of the new language features added in this release. Dynamic The dynamic keyword is a key feature o...

Step by Step Webforms MVP and DotNetNuke Part 1.

Joe Brinkman, April 12, 2010
Views: 129 | Hits 9

This morning at the QA team meeting we discussed the Testable DNN Module and its use of Webforms MVP to make it testable. During the conversation we decided we needed some step by step information on ...

Get Ready For C# 4.0!

C# Frequently Asked Questions, April 12, 2010
Views: 257 | Hits 57

Visual Studio 2010 is here! And of course this means that C# 4.0 is also here. Lets do a quick review of the new language features added in this release. Dynamic The dynamic keyword is a key feature o...

Automating ASP.NET MVC deployments using Web Deploy

Jeffrey Palermo, April 12, 2010
Views: 310 | Hits 60

The following is an excerpt from ASP.NET MVC 2 in Action, a book from Manning to be in bookstores in May.  The early access (MEAP) edition is available now on http://manning.com/palermo2....

An iterator is a section of code that returns an ordered sequence of values of the same type.

EggHeadCafe.com New Articles, April 10, 2010
Views: 260 | Hits

Among other languages, iterators are used in C++, C# and other .NET languages, Java, Ruby, and Python. The primary purpose of an iterator is to allow a user to process every element of a container wh...

Get Ready For C# 4.0!

C# Frequently Asked Questions, April 9, 2010
Views: 132 | Hits 12

Visual Studio 2010 is here! And of course this means that C# 4.0 is also here. Lets do a quick review of the new language features added in this release. Dynamic The dynamic keyword is a key feature o...

Agile Entity Framework 4 Repository: Part 6: Mocks & Unit Tests

Julia Lerman Blog - Dont Be Iffy..., April 8, 2010
Views: 410 | Hits 100

I did finish this series, honest I did. But not in the blog. Ive shown this in a number of conferences and even in my book, but I never came back and wrote it all down. In fact, I had the whole soluti...

Paint With Light

MSDN: Coding4Fun, April 5, 2010
Views: 15 | Hits 1

In this article, Ill describe how to create videos of drawing graffiti-like doodles using a webcam and a pen light (or a laser pointer). Randall Maas Code It: Download Run It: Download Difficult...

RIA Services and Entity Framework POCOs

Julia Lerman Blog - Dont Be Iffy..., April 5, 2010
Views: 410 | Hits 67

WCF RIA Services contains a special domain service for entity framework which will automatically be used if you use the Domain Service template in Visual Studio. This winter I tried the template with ...

A review of the latest edition of C# 4.0 in a Nutshell, by Joseph and Ben Albahari

EggHeadCafe.com New Articles, April 4, 2010
Views: 273 | Hits

Book review of the latest edition of C# 4.0 in a Nutshell, by Joseph and Ben Albahari [O'Reilly]  read moreBy Peter Bromberg...

Optional Parameters and Named Arguments in C# 4 (and a cool scenario w/ ASP.NET MVC 2)

ScottGus Blog, April 2, 2010
Views: 241 | Hits 32

[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] This is the seventeenth in a series of blog posts Im doing on the u...

iPhone SDK vs. Windows Phone 7 Series SDK Challenge, Part 2: MoveMe

Shawn Burkes Blog, March 27, 2010
Views: 50 | Hits 2

In this series, I will be taking sample applications from the iPhone SDK and implementing them on Windows Phone 7 Series.  My goal is to do as much of an apples-to-apples comparison as I can.&nbs...

iPhone SDK vs. Windows Phone 7 Series SDK Challenge, Part 2: MoveMe

Shawn Burkes Blog, March 27, 2010
Views: 381 | Hits 14

In this series, I will be taking sample applications from the iPhone SDK and implementing them on Windows Phone 7 Series.  My goal is to do as much of an apples-to-apples comparison as I can.&nbs...

how to bind data binding source to group radio buttons

EggHeadCafe.com New Articles, March 26, 2010
Views: 500 | Hits

Hi I am working on windows c# application (visual studio 20008).In my form I have 5 Radio buttons ,grouped by group box. I have to bind this radio button to data binding source. this.rdoptPlus.DataBin...

Product Spotlight