| | |
| | | { |
| | | Type type = typeof(T); |
| | | List<T> list = new List<T>(); |
| | | |
| | | |
| | | try |
| | | { |
| | | AnalysisRuleAttribute? analysisRule = type.GetCustomAttribute<AnalysisRuleAttribute>(); |
| | |
| | | AnalysisItemRuleAttribute? analysisItemRule = propertyInfo.GetCustomAttribute<AnalysisItemRuleAttribute>(); |
| | | if (analysisItemRule != null) |
| | | { |
| | | if(analysisItemRule.AnalysisFormaType == AnalysisFormatType.BD) |
| | | if (analysisItemRule.AnalysisFormaType == AnalysisFormatType.BD) |
| | | { |
| | | propertyInfo.SetValue(result, code.ChangeType(propertyInfo.PropertyType)); |
| | | } |
| | |
| | | if (index != -1) |
| | | propertyInfo.SetValue(result, codes[index].ChangeType(propertyInfo.PropertyType)); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |