urlformatprovider.cs
来自「1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据」· CS 代码 · 共 34 行
CS
34 行
using System;
using System.Reflection;
using Club.Framework.Configuration;
using Club.Framework.Format;
namespace Club.Framework.Providers
{
/// <summary>
/// Summary description for UrlFormatProvider.
/// </summary>
public class UrlFormatProvider
{
private UrlFormatProvider()
{
}
static UrlFormatProvider()
{
UrlFormatProviderConfiguration urlFPC = Config.Settings.WebProviders.UrlFormatProvider;
Type[] types = {typeof(string)};
Type t = Type.GetType(urlFPC.ProviderType);
formatConstructor = t.GetConstructor(types);
}
private static ConstructorInfo formatConstructor = null;
public static UrlFormats Instance(string fullyQualifiedUrl)
{
return (UrlFormats)formatConstructor.Invoke(new object[]{fullyQualifiedUrl});
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?