Код: Выделить всё
@code
{
public DateTime? _date = null;
public DateTime? _parsedDate = null;
public async Task GetProcessIdsByMonth()
{
// everything I have tried here results in either
// "Cannot convert from "CS1503: System.DateTime? to "System.ReadOnlySpan"
// or "CS0246: The type or namespace name '' could not be found "
Console.WriteLine($"Converted Date: {_date});
Console.ReadLine();
}
}
Я продолжаю получать эти ошибки, независимо от того, что я пытаюсь. Я попытался скопировать поле _date в локальную переменную DateTime, но даже это не удается. .ReadOnlySpan "< /p>
< /blockquote>
cs0246: тип или имя пространства имен '' не может быть найдено < /p>
Подробнее здесь: https://stackoverflow.com/questions/794 ... month-only
Мобильная версия