C# Class Google.Protobuf.Reflection.OneofAccessor

Reflection access for a oneof, allowing clear and "get case" actions.
Mostrar archivo Open project: Arctium-Emulation/Project-WoW Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
OneofAccessor ( PropertyInfo caseProperty, MethodInfo clearMethod, Google.Protobuf.Reflection.OneofDescriptor descriptor ) : System

Method Details

Clear() public method

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

GetCaseFieldDescriptor() public method

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