This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections.Generic;
namespace IcecreamView
{
public class EventArg
{
private List<object> values;
public EventArg(params object[] values)
{
if (values == null)
{
this.values = null;
return;
}
this.values = new List<object>(values);
}
public T GetValue<T>(int index = 0)
{
if (this.values == null || index >= this.values.Count)
{
return default;
}
return (T)this.values[index];
}
public bool IsNotNull(int index = 0) { return this.values.Count > index && this.values[index] != null; }
public int Count => values.Count;
}
}