C#
2015.11.13 11:36
프로토콜 버퍼에러 Protobuf-net Error: Type is not expected, and no contract can be inferred:
다물칸 주소복사
조회 수 183 추천 수 0 댓글 0
구분 | 팁&트릭 |
---|---|
출처 | 내가작성 |
Protobuf-net Error: Type is not expected, and no contract can be inferred:
디버깅하다가 이런 오류가 턱하니 나왔을 때 구글링 하니 뭔소린지..
이 오류에 대한 정확한 답인지는 모르겠으나 나의 경우 클래스 선언부에 하필이면 이 녀석만 아래 구문이 적용되지 않아
발생했었다. 또 삽질할까봐 적어놓는다.
[Serializable]
[ProtoContract]