"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)
 
Back
Top