Hidistro.Core/Configuration/Provider.cs
(完整代码) 1KBnamespace Hidistro.Core.Configuration
{
using System;
using System.Collections.Specialized;
using System.Xml;
public class Provider
{
private string name;
private NameValueCollection providerAttributes = new NameValueCollection();
private string providerType;
public Provider(XmlAttributeCollection attributes)
{
if (attributes != null)
{
this.name = attributes["name"].Value;
this.providerType = attributes["type"].Value;
foreach (XmlAttribute attribute in attributes)
{
if ((attribute.Name != "name") && (attribute.Name != "type"))
{
this.providerAttributes.Add(attribute.Name, attribute.Value);
}
}
}
}
public NameValueCollection Attributes
{
get
{
return this.providerAttributes;
}
}
public string Name
{
get
{
return this.name;
}
}
public string Type
{
get
{
return this.providerType;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
