using System; using HaXMLReader.EvArgs; using System.Collections.Generic; namespace HaDocument.Models { public abstract class HaModel { protected static List<(Func, Action)> FieldActions = null; internal static void AddAction(Func If, Action Then) { if (If == null || Then == null) throw new ArgumentNullException(); if (FieldActions == null) FieldActions = new List<(Func, Action)>(); FieldActions.Add((If, Then)); } } }