"field is never assigned to" warnings

  • Thread starter Thread starter Hans Nieser
  • Start date Start date
H

Hans Nieser

I was wondering wether it was normal that I get "field is never assigned
to" warnings after defining a struct but not having actually referred to
it in my code yet. Is this just something I'll have to ignore or am I
doing something wrong here?

TIA
 
This is a warning that the struct will ahve default values.

Assign it with a new instance and they go away.

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top