Когда я пытаюсь использовать JSON для сериала классов в единстве, он терпит неудачу. giving me an error:
TypeLoadException: Could not resolve type with token 01000012 from typeref (expected class 'System.Diagnostics.DebuggerBrowsableAttribute' in assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
Я позаботился о том, чтобы пометить каждый класс как [System.serialzable] < /p>
Код: Выделить всё
namespace SharedLibrary
{
[System.Serializable]
public class User
{
public Guid Id { get; set; }
public string Username { get; set; }
public string Email { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public Role Role { get; set; }
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... s-on-build
Мобильная версия