mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 17:55:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			540 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			540 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using HaXMLReader.EvArgs;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace HaDocument.Models {
 | |
|     public abstract class HaModel {
 | |
|         protected static List<(Func<Tag, bool>, Action<Tag>)> FieldActions = null;
 | |
| 
 | |
|         internal static void AddAction(Func<Tag, bool> If, Action<Tag> Then) {
 | |
|             if (If == null || Then == null) throw new ArgumentNullException();
 | |
|             if (FieldActions == null) FieldActions = new List<(Func<Tag, bool>, Action<Tag>)>();
 | |
|             FieldActions.Add((If, Then));
 | |
|         }
 | |
|     }
 | |
| }
 | 
