音频内容

This commit is contained in:
2024-09-19 01:12:10 +08:00
parent 1c390954ce
commit 35bd460011
80 changed files with 2205 additions and 59 deletions
@@ -0,0 +1,23 @@
/*
* 自定义对象工厂:相关对象是 自己定义
*/
using System;
namespace AibisDream.Kit
{
public class CustomObjectFactory<T> : IObjectFactory<T>
{
protected readonly Func<T> factoryMethod;
public CustomObjectFactory(Func<T> vFactoryMethod)
{
factoryMethod = vFactoryMethod;
}
public T Create()
{
return factoryMethod();
}
}
}