Ai
1 Star 0 Fork 0

雪碧/CsvHelper-For-Unity

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
NamespaceInfo.cs 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Linq;
namespace CsvHelper.DocsGenerator.Infos
{
[DebuggerDisplay("Name = {Name}")]
public class NamespaceInfo : Info
{
public AssemblyInfo Assembly { get; protected set; }
public string Namespace { get; protected set; }
public List<TypeInfo> Types { get; private set; } = new List<TypeInfo>();
public List<TypeInfo> Classes { get; private set; } = new List<TypeInfo>();
public List<TypeInfo> Interfaces { get; private set; } = new List<TypeInfo>();
public List<TypeInfo> Enums { get; private set; } = new List<TypeInfo>();
public NamespaceInfo(AssemblyInfo assemblyInfo, string @namespace, List<Type> types, XElement xmlDocs)
{
Assembly = assemblyInfo;
Namespace = @namespace;
foreach (var type in types)
{
var typeInfo = new TypeInfo(type, xmlDocs);
Types.Add(typeInfo);
if (type.IsClass)
{
Classes.Add(typeInfo);
}
else if (type.IsInterface)
{
Interfaces.Add(typeInfo);
}
else if (type.IsEnum)
{
Enums.Add(typeInfo);
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/SpritePlus/CsvHelper-For-Unity.git
git@gitee.com:SpritePlus/CsvHelper-For-Unity.git
SpritePlus
CsvHelper-For-Unity
CsvHelper-For-Unity
master

搜索帮助