| | 1 | | // Copyright (c) 2020-2024 dotBunny Inc. |
| | 2 | | // dotBunny licenses this file to you under the BSL-1.0 license. |
| | 3 | | // See the LICENSE file in the project root for more information. |
| | 4 | |
|
| | 5 | | using System; |
| | 6 | |
|
| | 7 | | namespace GDX.DataTables.DataBinding |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// A serializable representation of a row of data from a <see cref="DataTableBase" />. |
| | 11 | | /// </summary> |
| | 12 | | [Serializable] |
| | 13 | | public class SerializableRow |
| | 14 | | { |
| | 15 | | #pragma warning disable IDE1006 |
| | 16 | | // ReSharper disable InconsistentNaming |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// The unique row identifier. |
| | 20 | | /// </summary> |
| 0 | 21 | | public int Identifier = -1; |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// The row's user-friendly name. |
| | 25 | | /// </summary> |
| | 26 | | public string Name; |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// The row's data. |
| | 30 | | /// </summary> |
| | 31 | | public string[] Data; |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Create a new serializable row. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="columns">The number of columns in that row.</param> |
| 0 | 37 | | public SerializableRow(int columns) |
| 0 | 38 | | { |
| 0 | 39 | | Data = new string[columns]; |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | // ReSharper enable InconsistentNaming |
| | 43 | | #pragma warning restore IDE1006 |
| | 44 | | } |
| | 45 | | } |