A simple POCO class representing a sample data structure. It defines string, float, int and bool properties, and holds a reference to a DataSubStructureSample initialized in the constructor.
public class DataStructureSample
{
public string Name { get; set; } = "abcd";
public float Floating { get; set; } = 12.2f;
public int Integering { get; set; } = 12;
public bool Booleaning { get; set; } = true;
// public struct StructSub
// {
// string Awa = "aaaa";
// };
public DataSubStructureSample SubStruct { get; set; }
public DataStructureSample(string setName = "aaaa")
{
Name = setName;
SubStruct = new DataSubStructureSample("hello world");
}
/*
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties
*/
}