Category Archives: C#

PHPHOST BLOG

Web Hosting Related Articles You May Need

.NET Programming for Absolute Beginners [Free Video Series]

Channel 9 has just launched an absolute beginner programming series to help people learn to program. This FREE training series is created for programmers who have no experience with C# or VB.NET

The series of 49 episodes (24 episodes for C# and 25… Continue reading

Posted in C#, Free Learning, Syndicated, VB.NET | Leave a comment

Which .NET Attributes are my Assemblies Using?

An attribute describes a characteristic of some elements (classes, methods, fields) of a .NET program. Once associated with a program entity, the attribute can be queried at run time and used in any number of ways. In this post, we will learn how to li… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

Which .NET Attributes are my Assemblies Using?

An attribute describes a characteristic of some elements (classes, methods, fields) of a .NET program. Once associated with a program entity, the attribute can be queried at run time and used in any number of ways. In this post, we will learn how to li… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

C#: Find Previous Month’s First and Last Day

Here’s a simple query that gives you the first and last day of the previous month.

static void Main(string[] args)
{
var yr = DateTime.Today.Year;
var mth = DateTime.Today.Month;
var firstDay = new DateTime(yr, mth, 1).AddMonths(-1);
var lastDay = n… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

C#: Find Previous Month’s First and Last Day

Here’s a simple query that gives you the first and last day of the previous month.

static void Main(string[] args)
{
var yr = DateTime.Today.Year;
var mth = DateTime.Today.Month;
var firstDay = new DateTime(yr, mth, 1).AddMonths(-1);
var lastDay = n… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

LINQ: Calculate Average File Size in C#

Let us see a simple code using LINQ and C# that calculates the average FileSize of the files kept in a folder.

First import the following namespaces:

using System.Linq;
using System.IO;

Then write the following code:

class Program
{
static v… Continue reading

Posted in C#, LINQ, Syndicated | Leave a comment

LINQ: Calculate Average File Size in C#

Let us see a simple code using LINQ and C# that calculates the average FileSize of the files kept in a folder.

First import the following namespaces:

using System.Linq;
using System.IO;

Then write the following code:

class Program
{
static v… Continue reading

Posted in C#, LINQ, Syndicated | Leave a comment

WCF 4.0 REST POX Service with Help Page

Representational State Transfer (REST) support was included in WCF 3.5. In WCF 4.0, this feature has been enhanced with Help page support. This facility was added as WCF REST allows direct call to OperationContracts, using HTTP protocol by the client a… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

WCF 4.0 REST POX Service with Help Page

Representational State Transfer (REST) support was included in WCF 3.5. In WCF 4.0, this feature has been enhanced with Help page support. This facility was added as WCF REST allows direct call to OperationContracts, using HTTP protocol by the client a… Continue reading

Posted in .NET, C#, Syndicated | Leave a comment

Early June 2011 Software Development Posts of Interest

This post summarizes some blog posts that I have found very interesting in the past week (posts may be older than this, but I saw them in the past week). The topics covered are fairly diverse.

Learning Groovy

I like Vasanth Dharmaraj’s post Learning… Continue reading

Posted in Android, C#, General Development, Groovy, PHP, Syndicated | Leave a comment