Summary
Runs actions for the specific matching types.
Syntax
public static void Match<Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9, Type10, BaseType>(this List<DiscriminatedUnionWithBase<Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9, Type10, BaseType>> values, Action<Type1> Action1, Action<Type2> Action2, Action<Type3> Action3, Action<Type4> Action4, Action<Type5> Action5, Action<Type6> Action6, Action<Type7> Action7, Action<Type8> Action8, Action<Type9> Action9, Action<Type10> Action10)
where Type1 : BaseType where Type2 : BaseType where Type3 : BaseType where Type4 : BaseType where Type5 : BaseType where Type6 : BaseType where Type7 : BaseType where Type8 : BaseType where Type9 : BaseType where Type10 : BaseType
Type Parameters
Name |
Description |
Type1 |
Type1 |
Type2 |
Type2 |
Type3 |
Type3 |
Type4 |
Type4 |
Type5 |
Type5 |
Type6 |
Type6 |
Type7 |
Type7 |
Type8 |
Type8 |
Type9 |
Type9 |
Type10 |
Type10 |
BaseType |
|
Parameters
Name |
Type |
Description |
values |
List<DiscriminatedUnionWithBase<Type1, Type2, Type3, Type4, Type5, Type6, Type7, Type8, Type9, Type10, BaseType>> |
|
Action1 |
Action<Type1> |
The action to run for Type1 |
Action2 |
Action<Type2> |
The action to run for Type2 |
Action3 |
Action<Type3> |
The action to run for Type3 |
Action4 |
Action<Type4> |
The action to run for Type4 |
Action5 |
Action<Type5> |
The action to run for Type5 |
Action6 |
Action<Type6> |
The action to run for Type6 |
Action7 |
Action<Type7> |
The action to run for Type7 |
Action8 |
Action<Type8> |
The action to run for Type8 |
Action9 |
Action<Type9> |
The action to run for Type9 |
Action10 |
Action<Type10> |
The action to run for Type10 |
Return Value