JSONエンコードされた文字列があります。私はまた、C#クラスを持っている:JSON.netデシリアライズ
class Pupu{
public static List<Pupu> plist = new List<Pupu>();
public string user {get; set;}
public string number {get; set;}
}
[{"user":"27FFBADD7284E5CB98EAC45559589E28FDDDC3AD","number":"62827"},{"user":"27FFBADD7284E5CB98EAC45559589E28FDDDC3AD","number":"30460"}, {"user":"0D27D44D40C5185423078B3C93B3E6B596AD21A0","number":"25143"}, {"user":"0D27D44D40C5185423078B3C93B3E6B596AD21A0","number":"22776"}, {"user":"27FFBADD7284E5CB98EAC45559589E28FDDDC3AD","number":"19755"}]
私はそれをdesirializingています:
plist = JsonConvert.DeserializeObject<List<Pupu>>(stringAbove);
私は入れませんしています:
Attempt to access the method failed: System.Collections.Generic.List`1..ctor();
おかげで、私はいくつかのために、このを探しています時間は今です。 (私はC#の初心者です)。
クラスXの宣言の中にクラスXのインスタンスを持つことはできません。 –