Questions tagged [nonserializedattribute]

16 questions
-1
votes
0 answers

C# NonSerialized not valid on variable with { protected set; get; }

I have a variable, Chunks, that is marked as { protected set; get; }. I want to mark this variable as NonSerialized so it won't be saved when I serialize the object that contains it. However, I get the following error when I try this: CS0592:…
Rgamer43
  • 386
  • 2
  • 10
1
2