Questions tagged [unassigned-variable]
93 questions
-3
votes
1 answer
C# How does code involving delegates work?
This is a prototype of some of my code in the project that I've gotten from here, but I'm struggling to understand why it works the way it does.
Here's the code.
static void Main(string[] args)
{
SomeClass sm = new SomeClass();
…

Vocaloidas
- 360
- 2
- 17
-3
votes
1 answer
why use of unassigned local variable. C#. create a new node
I have a problem with the following code. I need to only create a new pcba node if it is different from the one created previously. I need to work with the same variable if that variable not change.
foreach (XmlNode node in…

Saul Melgarejo
- 1
- 1
-3
votes
1 answer
Use of unassigned out parameter 'q'
Getting error use of unassigned out parameter 'q' and 'g', please correct where I am doing wrong. Thanks in advance.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class…

Maddy
- 3
- 3