添加项目文件。
This commit is contained in:
1 parent
54c7b83029
commit
ef50fa0620
84 files changed
+9188
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace Store.Management.Framework.Extensions;
|
||||
|
||||
public class DISource : MarkupExtension
|
||||
{
|
||||
internal static Func<Type, string, object> Resolver { get; set; }
|
||||
|
||||
public Type Type { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public override object ProvideValue(IServiceProvider serviceProvider)
|
||||
{
|
||||
return Resolver?.Invoke(Type, Name);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user