So now that I’m moving back to .Net development, I decided to fire up Parallels and try out Visual Studio 2008…
Loving this new feature:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DevelopStuff.StoreStuff.Library
{
public class Document
{
private string _name;
private string _id;
private string _content;
private string _revision;
private Database _database;
public string Name { get; set; }
public string ID { get; set; }
public string Content { get; set; }
public Database Database { get; set; }
public string Revision { get; set; }
public override string ToString()
{
return this.Name;
}
}
}
Automagic properties… gotta love syntactic sugar.
Did I miss something? Are you doing .net at space150?
Oh, I’m a moron, I missed your previous post somehow :)
Hi Jake,
It gets even sweeter, you do not have to declare the private members, the compiler will generate those automatically.
@ben - DOH! :)
@dough - oh really? that’s pretty damn sweet.