示例#1
0
 private ServiceTypeInfo(ServiceTypeKind kind, ServiceDtoInfo dto = null, ServiceEnumInfo @enum = null, ServiceTypeInfo valueType = null)
 {
     Kind      = kind;
     Dto       = dto;
     Enum      = @enum;
     ValueType = valueType;
 }
示例#2
0
 /// <summary>
 /// Create a DTO type.
 /// </summary>
 public static ServiceTypeInfo CreateDto(ServiceDtoInfo dto)
 {
     return(new ServiceTypeInfo(ServiceTypeKind.Dto, dto: dto));
 }
示例#3
0
 /// <summary>
 /// Create a DTO type.
 /// </summary>
 public static ServiceTypeInfo CreateDto(ServiceDtoInfo dto) => new ServiceTypeInfo(ServiceTypeKind.Dto, dto: dto);