Plugin.Architecture.Core/Config/UrlCollection.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Configuration;
namespace Plugin.Architecture.Core.Config
{
public class UrlCollection : ConfigurationElementCollection
{
private IDictionary<string, string> settings;
protected override ConfigurationElement CreateNewElement()
{
return new UrlElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
UrlElement ep = (UrlElement)element;
return ep.Key;
}
protected override string ElementName
{
get
{
return base.ElementName;
}
}
public IDictionary<string, string> Settings
{
get
{
if (settings == null)
{
settings = new Dictionary<string, string>();
foreach (UrlElement e in this)
{
settings.Add(e.Key, e.Value);
}
}
return settings;
}
}
public new string this[string key]
{
get
{
string isLoad = string.Empty;
if (settings == null)
{
settings = new Dictionary<string, string>();
foreach (UrlElement e in this)
{
settings.Add(e.Key, e.Value);
}
}
后面还有 13 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。