D
D
DALVROT2020-12-03 16:29:30
C++ / C#
DALVROT, 2020-12-03 16:29:30

The name 'list' does not exist in the current c# context, VS, what's the problem?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LMV_3
{
    class mainClass
    {
        List<Group> list = new List<Group>();
        list

        
    }
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2020-12-03
@DALVROT

You don't have a method where you could use this list. Now you are declaring the variables of the mainClass class.

H
HemulGM, 2020-12-03
@HemulGM

You write a class description, not a code algorithm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question