示例#1
0
 internal ApiSetEntry(ApiSetFlags flags, string name, string hash_name, List <ApiSetHost> hosts)
 {
     Flags      = flags;
     Name       = name;
     HashName   = hash_name;
     HostModule = hosts.FirstOrDefault(h => h.DefaultHost)?.HostModule ?? string.Empty;
     Hosts      = hosts.AsReadOnly();
 }
示例#2
0
 internal ApiSetNamespace(ApiSetFlags flags, List <ApiSetEntry> entries)
 {
     Flags   = flags;
     Entries = entries.AsReadOnly();
 }