public void Apply(CSField f) { f.Type = Type; if (ArraySize != null) { f.ArraySize = int.Parse(ArraySize); } }
public CSStruct(Struct s) { Name = s.Name; Handle = s.Handle; Union = s.Union; Fields = new List <CSField>(); foreach (var f in s.Fields) { var csf = new CSField(f); Fields.Add(csf); if (csf.Unsafe) { Unsafe = true; } } }