Sweet: Some of the new stuff in .Net 3.x simply/examplyfied.(blogs.msdn.com)
submitted by
wisemx(8074) 3 years, 4 months ago
Just thought I put together a small class that shows some of the new features in .Net 3.x
// Oldschool
private int oldAge;
public int OldAge
{
get { return oldAge; }
set { oldAge = value; }
}
// Newschool
public int NewAge{get; set;}
// Note, you can't mix old/new, ie:
//public int NewAge { get; set{value + 4}; }
|category: ASP.NET
|Views: 14
tags:
ASP.NET another
Everyones tags:
Your Tags: