??????????????路????????梅?????????????????C#???????????????——?????
????1????????????????????????????????????????????????????????????????些?????????????????些????????????????些?????????????纾�?????????????????????些????????????????????????????????????????????????try…catch????????????????????????????????????try…catch????谩?????????????????????????????ExceptionExAttribute?????????????????些?????????????????????AOP?????????AOP???????????????????????????????????????????锟�???????????????????????????????????[ExceptionEx]???????????????????????????????????????????????澹�
??????????????????????????????????????????????????????????????????????????????? reflection.” data-guid=”716c0768f610f38427afe934e71f1d47″ style=”margin: 0px; padding: 0px;”>??????????????????????????????????“????”?????????????
????????????????????
????????????????????????? Metadata is information about the types defined in a program.” data-guid=”01e24c05eb8a815d9d031ae958a894ae” style=”margin: 0px; padding: 0px;”>????????泄???????卸?????????????? ???械? .NET ??????????????????????????些???????????????卸????????????????? ????????????????????????????魏胃????????
???????????????????????????????????????小?????????????????????
?????????????????????????????????????
?????????????梅?????????????????????????????????
??????????????MSDN??
????2????????????????????????????????????????????????????????????????????????????????????????????????~~
????3?????????????????位????????????????????????????????梅?????????????????????????霉????????????????????????????????????????梅??伞?
??????1???????????????????梅???
?????????????????????????????????????????BS??????????????????贸??????????????????????贸???????????????????BS????????????????????????

????????????3??div??????????????div??????????????????????2?????????????????????????

????????路?????div?????Model?????Model????????????械????????????????????????????????????????????????????贸????html?????
??????????
???????????????????????????
????public class DetailAttribute : Attribute
????{
????public string AttrName { set; get; }
????public string Html { set; get; }
????public string DefaultValue { set; get; }
????public string DataSource { set; get; }
????}
?????????Model??
public class Factory
{
[Detail(AttrName="???"?? Html="<input type='text' />"?? DefaultValue="50"?? DataSource=null)]
public string Width { set; get; }
[Detail(AttrName = "???"?? Html = "<input type='text' />"?? DefaultValue = "50"?? DataSource = null)]
public string Height { set; get; }
[Detail(AttrName = "??"?? Html = "<select></select>"?? DefaultValue = null?? DataSource = "select text??value from status")]
public string Status { set; get; }
[Detail(AttrName = "Tag?"?? Html = "<input type='text' />"?? DefaultValue = ""?? DataSource = null)]
public string Tag { set; get; }
}
public class FactoryDetail
{
[Detail(AttrName = "???"?? Html = "<input type='text' />"?? DefaultValue = "50"?? DataSource = null)]
public string Width { set; get; }
[Detail(AttrName = "???"?? Html = "<input type='text' />"?? DefaultValue = "50"?? DataSource = null)]
public string Height { set; get; }
[Detail(AttrName = "??"?? Html = "<select></select>"?? DefaultValue = null?? DataSource = "select text??value from status")]
public string Status { set; get; }
[Detail(AttrName = "Tag?"?? Html = "<input type='text' />"?? DefaultValue = ""?? DataSource = null)]
public string Tag { set; get; }
[Detail(AttrName = "????"?? Html = "<input type='text' />"?? DefaultValue = ""?? DataSource = null)]
public string Desc { set; get; }
}