Bom dia!
Na aula removendo duplicidade o professor implementa o código abaixo:
O meu está igual o dele
private Dictionary<string, DocComando> docs;
public Help()
{
docs = Assembly.GetExecutingAssembly().GetTypes()
.Where(t => t.GetCustomAttributes<DocComando>().Any())
.Select(t => t.GetCustomAttributes<DocComando>()!)
.ToDictionary(d => d.Instrucao);
}
, mas da o seguinte erro :
"Severity Code Description Project File Line Suppression State Error CS1061 'IEnumerable' does not contain a definition for 'Instrucao' and no accessible extension method 'Instrucao' accepting a first argument of type 'IEnumerable' could be found (are you missing a using directive or an assembly reference?) Alura.Adopet.Console C:\Users\lorraynecruz\OneDrive - KPMG\Desktop\Estudos\Adopet\BoasPraticasCsharp-master\Alura.Adopet.Console\Help.cs 21 Active"
Onde estou errando?