Pages
-
Recent Posts
- Revolving Door: MPAA Hires Chief USTR Negotiator Behind ACTA And TPP’s IP Chapter
- Copyright Maximalists’ Incredible Sense Of Entitlement: If It Challenges The Biz Model We Chose, It Must Be Illegal
- Turkey’s Prime Minister Sues His Own Country Over Twitter
- Picturefill 2
- Police File On Student ‘Bullied Into Committing Suicide’ Strangely Lacking In Evidence Of Bullying
Archives
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
Meta
Category Archives: C#
PHPHOST BLOG
Web Hosting Related Articles You May Need
Random ASP.NET, MVC & C# Tips in 100 Chars
I had a lot of fun last Friday! The South Asia Microsoft MVP group had organized a Techweet Friday where Microsoft MVP’s would tweet tips about different Microsoft Technologies in 100 chars or less.
I tweeted too and here are some ASP.NET, ASP.NET MVC and C# tips for my non-twitter friends
C# TipsOnce you assign a value to a BigInteger variable, it becomes immutable (cannot change)
‘var’ is not Continue reading
Posted in ASP.Net, ASP.NET AJAX, C#, Syndicated
Comments Off on Random ASP.NET, MVC & C# Tips in 100 Chars
Perform CRUD Operations using OData Services in .NET
In this article, we will see how to perform CRUD Operations using OData Services in .NET applications.
OData (Open Data Protocol) is a web protocol for performing CRUD operations which is built upon web technologies like HTTP, Atom Publishing Protoco… Continue reading
Posted in .NET, C#, Syndicated, WCF
Comments Off on Perform CRUD Operations using OData Services in .NET
ReadOnlyDictionary in .NET 4.5
Yes! For people doing custom implementation to create a Read Only Dictionary, there is now a .NET BCL implementation of the same in .NET 4.5. For the Uninitiated the question is – Why do you need a ReadOnlyDictionary in the first place?A ReadOnlyDictio… Continue reading
Posted in .NET, C#, Syndicated
Comments Off on ReadOnlyDictionary in .NET 4.5
Zip Archives Become a First class citizen in .NET 4.5
Compression in the .NET framework has been supported via different libraries in the past (via Open File Conventions) but the support for .zip archives hasn’t quite been complete. With .NET 4.5 we get a dedicated zip compression library that allows us to manipulate zip libraries fully.
Introduction
Up until now, compression in .NET was supported only to the extent of supporting Open File Continue reading
Posted in .NET, C#, Syndicated
Comments Off on Zip Archives Become a First class citizen in .NET 4.5
Using Caller Info Attributes in C# 5.0 to Improve Logging
The problem of passing current method details haunted my team and me when we were asked to add logging to every available business layer method in a two year old project, that had no logging and empty try { } catch { } blocks. We eventually worked arou… Continue reading
Posted in .NET, C#, Syndicated
Comments Off on Using Caller Info Attributes in C# 5.0 to Improve Logging
Task-Based Asynchronous Pattern in .NET 4.5 – Part 1
In a previous article we saw an overview of the new IDE and Framework features of the current .NET Framework beta v4.5. Among other things .NET 4.5 has an improved support for Asynchronous programming through a new Task based model. In this article, w… Continue reading
Posted in .NET, C#, Syndicated
Comments Off on Task-Based Asynchronous Pattern in .NET 4.5 – Part 1
.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
Comments Off on .NET Programming for Absolute Beginners [Free Video Series]
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
Comments Off on Which .NET Attributes are my Assemblies Using?
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
Comments Off on Which .NET Attributes are my Assemblies Using?
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
Comments Off on C#: Find Previous Month’s First and Last Day