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