C# 클래스 Google.Protobuf.Reflection.OneofAccessor

Reflection access for a oneof, allowing clear and "get case" actions.
파일 보기 프로젝트 열기: Arctium-Emulation/Project-WoW 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( IMessage message ) : void

Clears the oneof in the specified message.

GetCaseFieldDescriptor ( IMessage message ) : FieldDescriptor

Indicates which field in the oneof is set for specified message

비공개 메소드들

메소드 설명
OneofAccessor ( PropertyInfo caseProperty, MethodInfo clearMethod, Google.Protobuf.Reflection.OneofDescriptor descriptor ) : System

메소드 상세

Clear() 공개 메소드

Clears the oneof in the specified message.
public Clear ( IMessage message ) : void
message IMessage
리턴 void

GetCaseFieldDescriptor() 공개 메소드

Indicates which field in the oneof is set for specified message
public GetCaseFieldDescriptor ( IMessage message ) : FieldDescriptor
message IMessage
리턴 FieldDescriptor