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

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

Deeply Nested Null Checking in C# verses Assert with no nesting

peterkellner.net, May 25, 2012
Views: 196 | Hits 32

One of the code smells that particularly bothers me (thought I often find myself doing it anyhow) is when I defensively program against nulls in C# (though could be any other language).  That is, I do...

Controlling JPEG Compression

Black Belt Coder Article Feed, May 18, 2012
Views: 165 | Hits 12

The JPG graphics format supports varying level of compression and quality. Although it isn't readily visible, the Image.Save() method allows you to control this level. Here's a sample C# method that d...

Automatically Convert C# Unsigned Integer Types to java using CodePorting Engine

ASP.NET Announcements, May 18, 2012
Views: 136 | Hits 2

We have shown you in previous blog posts that how developers can translate C# properties to java using CodePorting C#2Java App.  CodePorting is determined to translate those C# language construct...

Welcome to the IGF, Indiefreaks Game Framework

MSDN: Coding4Fun, May 16, 2012
Views: 130 | Hits 11

Today's project is a kind that I don't usually highlight, one that relies on a commercial third party SDK, but I really appreciated the author's intent and goals with it. I just can't get enough of pe...

C# Async: What is it, and how does it work?

Simple Talk, May 15, 2012
Views: 184 | Hits 50

the biggest new feature in C# 5 is Async, and its associated Await (contextual) keyword. Anybody who is faced with creating Metro applications for Windows 8 is having to tackle the very different min...

Multi-Core Binary File Splitter

The Code Project Latest Articles, May 13, 2012
Views: 146 | Hits 24

This article aims to show how to take advantage of the Parallel task execution in C# 4 in order to boost CPU Usage while splitting huge files into chunks on Multi-Core environments....

Functional programming in C#

The Code Project Latest Articles, May 10, 2012
Views: 270 | Hits 82

In this article will be shown how you can use functional programming in C#...

Calendar.NET

The Code Project Latest Articles, May 5, 2012
Views: 204 | Hits 40

A day and month calendar control for .NET and Winforms applications written in C#...

Search User in SAP and LDAP Databases or Create User in SAP

The Code Project Latest Articles, May 5, 2012
Views: 219 | Hits 10

Use Bapi in C#...

PersianDate Library that Returns value and Converts Syste.DateTime

The Code Project Latest Articles, May 5, 2012
Views: 178 | Hits 5

This is an alternative for "Get Full Shamsi Date in String Format with C# Class"...

Quickest way to create a .NET database application

The Code Project Latest Articles, May 4, 2012
Views: 237 | Hits 35

Tip to create a database application using C# .NET in the shortest time possible....

How to wrap a C# library for use in Java

The Code Project Latest Articles, May 4, 2012
Views: 193 | Hits 12

Wrap a C# library for use in Java, a folktale about an idiot coding at midnight....

How to make your own file type for your C# application, the easy way

The Code Project Latest Articles, May 2, 2012
Views: 231 | Hits 48

An easy way to make a custom file type and associate it to your C# application...

Playing, Recording, and Editing Video in the iPhone with MonoTouch Article

Wallace B. McClure, May 1, 2012
Views: 145 | Hits 3

This article resumes where we left off in "Working with Images and Animation on the iPhone and iPad with .NET and C#: Part 1," which looked at multimedia app development on the iPhone and iPad, in...

Working with Images and Animation on the iPhone and iPad with .NET and C#: Part 1

Wallace B. McClure, April 25, 2012
Views: 293 | Hits 22

Multimedia has come a long way during my career in programming. I remember the HP-41C, the first calculator that I used day to day in my geeky teenage years (unfortunately, I've only gotten geekier...

AsyncBridge - write async code for .NET 3.5+

Simple Talk, April 18, 2012
Views: 176 | Hits 8

Excited about the new async/await feature in C# 5? Can't run your application on .NET 4.5 yet? Well that's......

Escape the fear of writing XNA games for Windows Phone 7.5 and XBOX 360

MSDN: Coding4Fun, April 16, 2012
Views: 141 | Hits 6

This week we're going to be doing a gaming theme, mostly focusing on getting started writing games (Pretty much in the hope that all of you that aren't already writing games, start doing so and thereb...

Introduction to ASP.NET validation

The Code Project Latest Articles, April 16, 2012
Views: 263 | Hits 18

Client side validation using JavaScript and server side validation using C# and validation server controls with simple examples....

Writing a JustCode Code Cleaning Extension

the telerik blogs, April 10, 2012
Views: 229 | Hits 4

I recently decided to clean up an open source project, and the best tool I found for the job was Telerik JustCode’s Code Clean option. If you’ve never tried it, open the JustCode Options, ...

Update to EF5 and DbLocal Default in Config

Julia Lerman Blog - Dont Be Iffy..., April 3, 2012
Views: 196 | Hits 14

A few weeks ago I wrote a blog post showing how EF5 uses DbLocal as its default database along with a screenshot of the configuration info that EF5 puts into your config (web.config or app.config) of ...

Chess Program in C#

The Code Project Latest Articles, April 2, 2012
Views: 326 | Hits 35

SrcChess is a chess program built in C#...

Overriding the Pager rendering in Orchard

More Whidbey stuff, March 31, 2012
Views: 219 | Hits 14

The Pager shape that is used in Orchard to render pagination is one of those shapes that are built in code rather than in a Razor template. This can make it a little more confusing to override, but no...

XML Serialization and Deserialization

The Code Project Latest Articles, March 19, 2012
Views: 453 | Hits 51

XML Serialization and Deserialization in c#...

Drawing transparent glyphs on the HTML canvas

More Whidbey stuff, March 17, 2012
Views: 491 | Hits 28

The HTML canvas has a set of methods, createImageData and putImageData, that look like they will enable you to draw transparent shapes pixel by pixel. The data structures that you manipulate with thes...

On Writing Unit Tests for C#

Simple Talk, March 8, 2012
Views: 350 | Hits 83

Is it realistic to keep to principles of 'Test-First' and 100% coverage for unit tests when in the heat of developing commercial C# applications? Does rigorous unit-testing lead naturally to good desi...

Working with MongoDB Conventions

K. Scott Allen, March 8, 2012
Views: 282 | Hits 24

I started working with Mongo again recently and needed to fiddle a bit to retrieve existing data using the official 10gen driver. Let's say you have the following persisted in a Mongo collection: {...

Under the hood Part 5 : JavaScript application & C++ WinRT Component DLL WinRT, Windows 8, C++, Metro

The Code Project Latest Articles, March 7, 2012
Views: 471 | Hits 9

JavaScript application calling WinRT Component DLL In this part, we will create a C++ WinRT Component DLL and access it from a JavaScript application. We have developed a C++ WinRT Component DLL & C#....

KnockoutJS's Built-in Bindings

JohnPapa.net, March 2, 2012
Views: 353 | Hits 36

Bindings are the glue between the data values in the source (JavaScript objects) and the presentation in the target (the DOM). I continue to explore the KnockoutJS JavaScript library by examining Knoc...

My Orchard comment notification rule

More Whidbey stuff, March 2, 2012
Views: 293 | Hits 9

The Rules module in Orchard enable you to set-up if this then that types of rules. The system is fully extensible in terms of what this and that are of course, but Orchard comes with everything you ne...

Preprocessor Directives in C#

The Code Project Latest Articles, February 29, 2012
Views: 514 | Hits 59

To explain Preprocessor directives in C#...

More than one driver for a single Orchard part

More Whidbey stuff, February 24, 2012
Views: 311 | Hits 12

Drivers in Orchard are responsible for taking content parts and using them to generate shapes for the rendering engine to transform into HTML. A little known fact is that there can be more than one dr...

What you should know about if you are new to Javascript

The Code Project Latest Articles, February 22, 2012
Views: 415 | Hits 60

This article summarizes some important points and unexpected quirks in Javascript that experienced developers, especially those coming from C# or Java, should know about....

Game of life: Code solution in C#

The Code Project Latest Articles, February 17, 2012
Views: 583 | Hits 44

An Object Oriented solution to Conway's Game of life problem in C#...

Using EF 4.3 Code First Migrations with an Existing Database

Julia Lerman Blog - Dont Be Iffy..., February 16, 2012
Views: 523 | Hits 50

In working on my upcoming EF 4.3 Migrations video for Pluralsight, I wanted to work out how to use this with an existing database where I plan to add new types and therefore want migrations to not jus...

Let your apps sell themselves!

MSDN: Coding4Fun, February 13, 2012
Views: 294 | Hits 10

Don't miss any opportunity to market your Windows Phone apps!  Each one of your apps can serve as an ad for your other apps.    Learn how to add a listing of everything you have published in Marketpla...

The 3 P's, Windows Phone, Physics and Pirates!

MSDN: Coding4Fun, February 13, 2012
Views: 294 | Hits 10

Today's Mobile Monday project is a fun little Windows Phone game that lets play with physics and Pirates. How's that for a combination?Pirates! for Windows PhoneTable of ContentsIntroduction System Re...

Using T4Scaffolding to Create DbContext and Repository from Domain Classes

Julia Lerman Blog - Dont Be Iffy..., February 11, 2012
Views: 537 | Hits 57

You may already be familiar with the fact that ASP.NET MVC 3 tooling includes a scaffolding option that lets you point to a domain class and automatically build a Controller, a set of Views and if it ...

Flush IIS HTTP and FTP Logs to Disk

Scott Forsyths WebLog, February 4, 2012
Views: 353 | Hits 24

Today I wanted to find a way to flush the IIS FTP logs on-demand.  The logs for IIS FTP flush to disk every 6 minutes, and the HTTP logs every 1 minute (or 64kb).  This can make troubleshoot...

A simple update method in C#

The Code Project Latest Articles, February 3, 2012
Views: 631 | Hits 74

A simple update method in C#...

Dynamic Types and DynamicObject References in C#

Rick Strahls WebLog, February 1, 2012
Views: 404 | Hits 46

I've been working a bit with C# custom dynamic types for several customers recently and I've seen some confusion in understanding how dynamic types are referenced. This discussion specifically centers...

Roslyn CTP Introduces Interactive Code for C#

C# Frequently Asked Questions, January 31, 2012
Views: 390 | Hits 33

  There's been a lot of posts on using the Roslyn CTP APIs for syntax trees, semantic binding, and IDE smart editor features. The Roslyn CTP also introduces a set of features for C# we refer to ...

Where there's smoke, fire and explosions... there's the 3D particle engine, Tranquility

MSDN: Coding4Fun, January 30, 2012
Views: 267 | Hits 11

Today's Mobile Monday project is one that's both simple, yet complicated. Simple in that this project is just one piece of the overall picture of where you can use it. Complicated in that this might b...

Vimeo API in ASP.NET using C#

The Code Project Latest Articles, January 30, 2012
Views: 614 | Hits 21

Use .NET C# language to access the API of Vimeo...

Example Lexical Analysis of Obama's State of the Union Speech using LINQ

EggHeadCafe.com New Articles, January 25, 2012
Views: 440 | Hits 9

How to analyze text with word frequency lexical analysis: Obama State of the Union Speech  read moreBy Peter Bromberg...

SpaceShoot - A multiplayer game in HTML5

The Code Project Latest Articles, January 15, 2012
Views: 689 | Hits 53

Building a simple multiplayer game using C# for the server and JavaScript with WebSockets and Canvas for the client application...

Comparing Strings in Unit Tests

youve been HAACKED, January 14, 2012
Views: 404 | Hits 52

Suppose you have a test that needs to compare strings. Most test frameworks do a fine job with their default equality assertion. But once in a while, you get a case like this: [Fact] public v...

Several useful C# List<T> extension methods - ToDatatable, ToCsv

EggHeadCafe.com New Articles, January 9, 2012
Views: 576 | Hits 24

Create C# Extension methods to convert List to Datatable or To CSV string  read moreBy Peter Bromberg...

How to use optional parameters to keep method signatures backward compatible

EggHeadCafe.com New Articles, December 30, 2011
Views: 355 | Hits 32

From C# 4.0, methods, constructors, and indexers can declare optional parameters. A parameter is optional if it specifies a default value. Here we show how to preserve backward compatibilty.  read mor...

Implementing Programming Languages Using C# 4.0

The Code Project Latest Articles, December 27, 2011
Views: 759 | Hits 78

An introduction to creating programming language tools using C# 4.0....

A serious release update for DNN FAQ: 05.00.00

Joe Brinkman, December 23, 2011
Views: 269 | Hits 6

In March of this year I made some blog posts about my intentions with FAQ and I have (or I should say, we have, since Torsten Weggen joined the FAQ team) reached a serious new target: a complete con...