<p style="line-height:21px;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:14px;">
在Modle 创建专辑类 Album,它有两个属性:Title 和 Genre .
<div class="cnblogs_code" style="border:1px solid rgb(204,204,204);overflow:auto;font-family:'Courier New' !important;background-color:rgb(245,245,245);">
<pre style="font-family:'Courier New' !important;"><span style="color:rgb(0,255);line-height:1.5 !important;">public <span style="color:rgb(0,255);line-height:1.5 !important;">class Album
{
<span style="color:rgb(0,255);line-height:1.5 !important;">string Title { <span style="color:rgb(0,255);line-height:1.5 !important;">get; <span style="color:rgb(0,255);line-height:1.5 !important;">set; }
<span style="color:rgb(0,255);line-height:1.5 !important;">public Genre Genre { <span style="color:rgb(0,255);line-height:1.5 !important;">set; }
}