C# Класс Google.Protobuf.Reflection.OneofAccessor

Reflection access for a oneof, allowing clear and "get case" actions.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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