C#

16# C# Protobuf-net에서 Dictionary 사용법

NaHyungMin 2019. 4. 3. 17:50

[ProtoMember(1)]

public DictionaryWrapper<Int32, Int32> ItemAcquireList { get; set; }

 

[ProtoContract]

public class DictionaryWrapper<T1, T2>

{

    [ProtoMember(1)]

    public Dictionary<T1, T2> Dictionary { get; set; }

}