C# Class Google.Protobuf.Reflection.OneofAccessor

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

Méthodes publiques

Méthode 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

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

Method Details

Clear() public méthode

Clears the oneof in the specified message.
public Clear ( IMessage message ) : void
message IMessage
Résultat void

GetCaseFieldDescriptor() public méthode

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