본문 바로가기
C#

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

by NaHyungMin 2019. 4. 3.

[ProtoMember(1)]

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

 

[ProtoContract]

public class DictionaryWrapper<T1, T2>

{

    [ProtoMember(1)]

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

}