日期:2014-05-17  浏览次数:20948 次

【求助】通过反射 给属性赋值
我定义了一下一个类:

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;


namespace HisignScenePad.CSIPAD
{
    /// <summary>
    /// 案件类别关联分析意见实体类
    /// </summary>
    public class LawCaseEntity
    {
        static LawCaseEntity()
        {
            
        }

        public LawCaseEntity()
        {
            this.LawCaseIdentify = string.Empty;
            this.LawCaseType = string.Empty;
            this.IntentionDesc = string.Empty;
            this.IntentionDesc1 = string.Empty;
            this.locationDesc = string.Empty;
            this.locationDesc1 = string.Empty;
            this.CommissionMeansDesc = string.Empty;
            this.CommissionMeansDesc1 = string.Empty;
            this.CommissionPeriodDesc = string.Empty;
            this.CommissionPeriodDesc1 = string.Empty;
            this.EntranceExitDesc = string.Empty;
            this.EntranceExitDesc1 = string.Empty;
            this.CommissionPointsDesc = string.Empty;
            this.CommissionPointsDesc1 = string.Empty;
            this.IntrudingWayDesc = string.Empty;
            this.IntrudingWayDesc1 = string.Empty;
            this.CasePropertyDesc = string.Empty;