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