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

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

Flush IIS HTTP and FTP Logs to Disk

Scott Forsyths WebLog, February 4, 2012
Views: 260 | Hits 18

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: 303 | Hits 59

A simple update method in C#...

Dynamic Types and DynamicObject References in C#

Rick Strahls WebLog, February 1, 2012
Views: 230 | Hits 37

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: 260 | Hits 31

  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: 201 | Hits 10

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: 210 | Hits 14

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: 151 | Hits 5

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: 361 | Hits 48

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: 308 | Hits 51

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: 211 | Hits 18

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: 279 | Hits 31

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: 447 | Hits 75

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: 200 | 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...

Complete Google+ .NET Client Library

EggHeadCafe.com New Articles, December 19, 2011
Views: 403 | Hits 45

A Complete implementation of the Google+ API in .NET. Contains all current methods in the API.  read moreBy Peter Bromberg...

Windows Phone 7.5 Apps In Record Time

Tanzim Saqib on .NET discovery, December 15, 2011
Views: 388 | Hits 17

I have started writing an evolving micro eBook Windows Phone 7.5 Apps In Record Time. It was written as briefly as possible to act as a jump starter for those who have intermediate level of practical ...

Windows Phone 7.5 Apps In Record Time

Tanzim Saqib on .NET discovery, December 15, 2011
Views: 303 | Hits 14

I have started writing an evolving micro eBook Windows Phone 7.5 Apps In Record Time. It was written as briefly as possible to act as a jump starter for those who have intermediate level of practical ...

Net Framework 4.0 Concurrent Collections and how they can improve performance

EggHeadCafe.com New Articles, December 12, 2011
Views: 426 | Hits 55

Net Framework 4.0 Concurent Collections implement the producer-consumer paradigm with the exception of the ConcurrentDictionary class. With producer-consumer, usually one thread adds elements, and a d...

Asserting a mock with test framework

Mehfuzs WebLog, December 9, 2011
Views: 239 | Hits 25

When asserting an expected call for its number of occurrences or may be just to verify if the setup/arrange is acted as intended, the tool generally raises assertion that points us to the reason why t...

Use Projections and a Repository to Fake a Filtered Eager Load

Julia Lerman Blog - Dont Be Iffy..., December 7, 2011
Views: 250 | Hits 23

Entity Frameworks Include method which eager loads related data in a query does not allow sorting and filtering. People ask for this feature frequently. There is a way around the problem. I wrote abo...

Source-controlled database backups

More Whidbey stuff, December 5, 2011
Views: 307 | Hits 40

Im not very satisfied with traditional database backup solutions. It seems like almost no progress was made since SQL Server 6.5 (at least for the built-in tools). They are still outputting monolithic...

Introduction to the Roslyn Scripting API

C# Frequently Asked Questions, December 2, 2011
Views: 211 | Hits 16

by Brian Rasmussen In this post we take a look at how the Roslyn Scripting API can enable applications to evaluate code at runtime. While this has been possible since the dawn of .NET through the use ...

.NET access to the GPU for compute purposes

The Moth, December 2, 2011
Views: 274 | Hits 34

In the distant past I talked about GPGPU and Microsoft's then approach of DirectCompute. Since then of course we now have C++ AMP coming out with Visual Studio 11, so there is a mainstream easier way ...

Official Visual Studio 2010 Samples for C# 4.0

Recently Posted Code Samples on MSDN, November 29, 2011
Views: 251 | Hits 13

These are the official samples for Visual Studio 2010 C# 4.0....

Google Maps API V3 for ASP.NET

The Code Project Latest Articles, November 29, 2011
Views: 586 | Hits 71

The most frequently used tasks in Google Maps. The article includes an explanation of geocoding and reverse geocoding both in JavaScript and C#....

REPL for the Rosyln CTP 10/2011

Marquee de Sells: Chriss insight outlet, November 26, 2011
Views: 259 | Hits 8

I dont know what it is, but Ive long been fascinated with using the C# syntax as a command line execution environment. It could be that PowerShell doesnt do it for me (Ive seriously tried half a doz...

Enhancements and Useful Features in the C# programming language

EggHeadCafe.com New Articles, November 22, 2011
Views: 411 | Hits 87

Enhancements to the C# language have come from the addition of features such as generic types, nullable value types, lambda expressions, iterator methods, partial classes and a long list of other usef...

Get a free and open source physics library in BEPUphysics (for Windows, XBox and WP7)

MSDN: Coding4Fun, November 16, 2011
Views: 257 | Hits 16

Today's project is a physics engine, that's free, open source and cross Microsoft platform. And as you'd expect, not only do you get this cool engine, but a wide sample of demo's too. The scope of thi...

Simple but Interesting Features of VS2010 and C# 4.0

The Code Project Latest Articles, November 15, 2011
Views: 633 | Hits 137

ome very simple, yet interesting features of VS2010 and C# 4.0...

Dynamically creating a Generic Type at Runtime

Rick Strahls WebLog, November 11, 2011
Views: 313 | Hits 63

I learned something new today. Not uncommon, but it's a core .NET runtime feature I simply did not know although I know I've run into this issue a few times and worked around it in other ways. Today t...

Inner Fields and Lazy Initialization in C#

Steven Smith, October 29, 2011
Views: 80 | Hits 1

Using lazy initialization in C#, a classs state is set up such that each propertys get method performs a check to see if the underlying field is null.  If it is, then it calculates or populates t...

Inner Fields and Lazy Initialization in C#

Steven Smith, October 29, 2011
Views: 511 | Hits 35

Using lazy initialization in C#, a classs state is set up such that each propertys get method performs a check to see if the underlying field is null.  If it is, then it calculates or populates t...

State of .NET Image Resizing: how does imageresizer do?

More Whidbey stuff, October 22, 2011
Views: 372 | Hits 46

I've written several times before about image resizing in .NET and how the various built-in solutions (GDI, WPF and WIC) compare in terms of quality, speed and size. I'll put the links to my previous ...

Roslyn CTP Now Available

Somasegars WebLog, October 19, 2011
Views: 287 | Hits 32

In my last few blog posts, I’ve highlighted significant advancements our teams have made as part of the Visual Studio 11 Developer Preview released at //BUILD/, and I’ll continue that seri...

Magix Illuminate, and Open Source No-Code-Required Web Application Framework

ASP.NET Announcements, October 13, 2011
Views: 397 | Hits 26

Hi there, Magix is an Open Source, Web Application Framework, which allows you to deploy your apps to all devices at the same time [iPad, iPhone, Droid, Linux, Windows, 'whatever'] More importantly th...

Anatomy of a good bug report

Method ~ of ~ failed, October 12, 2011
Views: 280 | Hits 45

I was searching my archives for sending something to my team this morning after looking at various bugs logged from customers, internal partner teams and ourselves. I had an old post from 2005 but it ...

GART - The Geo AR (Augmented Reality) Toolkit for Windows Phone 7.1(5)

MSDN: Coding4Fun, October 12, 2011
Views: 399 | Hits 16

Today's project show's off one of my favorite new capabilities available with Windows Phone 7.1(5)*, how you can incorporate augmented reality into your "real world" applications. We've seen the dem...

So what's new in Orchard 1.3?

More Whidbey stuff, October 5, 2011
Views: 385 | Hits 36

Orchard 1.3 was released yesterday night with some really neat features that I will outline in this post. I will come back in depth on some of those with full-length posts. Let's start with the simple...

C# Fundamentals Part II & 10 Rules for Better C# Code

K. Scott Allen, October 3, 2011
Views: 561 | Hits 150

The second part of my C# fundamentals course is available for subscribers on Pluralsight.com. Part 2 introduces you to the variety of programming styles supported by the C# language. At its core,...

Full Screenshot for C#

The Code Project Latest Articles, September 28, 2011
Views: 732 | Hits 98

Full Screenshot for C#...

Bidirectional Entity Foreign Key Names in EF Code First

Steven Smith, September 23, 2011
Views: 356 | Hits 13

Ran into a small problem today, where I had two classes referring to one another using EF 4.1 Code First.  Lets say I had a class Item and another class ItemHistory.  ItemHistory has a prope...

Bidirectional Entity Foreign Key Names in EF Code First

Steven Smith, September 22, 2011
Views: 79 | Hits

Ran into a small problem today, where I had two classes referring to one another using EF 4.1 Code First.  Lets say I had a class Item and another class ItemHistory.  ItemHistory has a prope...

Classes and Structs in C#

ASPAlliance.com - The #1 ASP.NET Community, September 22, 2011
Views: 468 | Hits 98

There are two main concrete ways of encapsulating data and behavior in the common type system of the .NET Framework: classes and structs. Each one offers benefits over the other, and in this article I...

PIX-6T4, the DIY console, has an Orchard site

More Whidbey stuff, September 18, 2011
Views: 298 | Hits 21

If you're a regular reader of this blog, you may have noticed the electronics posts lately. With my friend Fabien, we've been building a little handheld console from readily available parts. It's al...

array and array_view from amp.h

The Moth, September 8, 2011
Views: 341 | Hits 8

This is a very long post, but it also covers what are probably the classes (well, array_view at least) that you will use the most with C++ AMP, so I hope you enjoy it! Overview The concurrency::arra...

"Hello, Skype? It's me .Net... Can I record you?"

MSDN: Coding4Fun, September 7, 2011
Views: 357 | Hits 49

I don't know about you, but there's some I love about being coder. It's when I see an existing application that I can extend, connect to, link with, improve. When I say to myself, "I really wish this...

C# 2010 Soup to Nuts Series

C# Frequently Asked Questions, September 1, 2011
Views: 409 | Hits 59

By Emily Gibson New! C# 2010 Soup to Nuts Series Explore this webcast series on Visual C# 2010 presented by Developer Evangelist, Bill Steele. Learn about class libraries, operator basics, branching...

Templated posture detector, Voice Commander and NuGet package now available in v1.1 of the [David Catuhe] Kinect Toolkit

MSDN: Coding4Fun, August 31, 2011
Views: 1,132 | Hits 12

We're revisiting a friend of the Gallery, David Catuhe (aka Eternal Coding), and his Kinect Toolkit. We last covered the Kinect Toolkit here, Gestures and Tools for Kinect and matching Toolkit too (an...

Code Contracts indicate the expected input states under which the method guarantees to operate correctly.

EggHeadCafe.com New Articles, August 27, 2011
Views: 98 | Hits 8

How to ensure your method guarantees to operate correctly under defined expected input states with Code Contracts. Contracts act as checked documentation of your external and internal APIs to be shi...

Designing C# Software With Interfaces

Simple Talk, August 24, 2011
Views: 419 | Hits 99

The best way to understand how interfaces improve software design is to see a familiar problem solved using interfaces. First, take a tightly-coupled system design without interfaces, spot its defic...

Open source Kinect gesture recognition project, Kinect DTW

MSDN: Coding4Fun, August 24, 2011
Views: 529 | Hits 29

Seems like we're on a Gesture recording theme this week so far... Today's project provides another look at recognizing and recording gestures with the Kinect for Windows SDK. In today's we get the sou...