Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

[C#] Simple code error storing data to a List

$
0
0
I am pretty new to C# so many things I have never done before, this is one.

I have the following code were I am testing to save data to playerPrefs using BinaryFormatter. However, the problem i have is how to store the "CardData" to the cardSavedData -list.

I do get the following message:

Code (csharp):
  1.  
  2. assets/DataSaveTest.cs(49,36): error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
on this line below: "cardSavedData.Add (CardData);"

I am...

[C#] Simple code error storing data to a List

Viewing all articles
Browse latest Browse all 1466670


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>