- Timestamp:
- 07/27/21 17:55:06 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueTypeMatrixConverter.cs
r17843 r18036 7 7 using HeuristicLab.Data; 8 8 using HeuristicLab.Core; 9 using System.Reflection; 9 10 10 11 namespace HeuristicLab.JsonInterface { … … 104 105 var rows = data.Length > 0 ? data[0].Length : 0; 105 106 107 108 // matrix 109 var t = matrix.GetType(); 110 var matrixInfo = matrix.GetType().GetField("matrix", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); 111 matrixInfo.SetValue(matrix, new T[rows, cols]); 112 /* 106 113 var rowInfo = matrix.GetType().GetProperty("Rows"); 107 rowInfo.SetValue(matrix, rows); 114 rowInfo.SetValue(matrix, rows); // TODO 108 115 var colInfo = matrix.GetType().GetProperty("Columns"); 109 116 colInfo.SetValue(matrix, cols); 117 */ 118 110 119 111 120 for (int x = 0; x < rows; ++x) {
Note: See TracChangeset
for help on using the changeset viewer.