C# Класс ProtocolBuffers.ProtoPrepare

Показать файл Открыть проект

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

Метод Описание
Prepare ( Proto proto ) : void

Приватные методы

Метод Описание
GetCSDefaultValue ( Field f ) : string

Get the default value in c# form

GetCSPropertyName ( Message m, string name ) : string

Gets the C# CamelCase version of a given name. Name collisions with enums are avoided.

GetCSType ( ProtoTypes type ) : string

Gets the c# representation for a given .proto type.

GetCamelCase ( string name ) : string

Gets the CamelCase version of a given name.

GetProtoType ( Message m, string path ) : MessageEnumBase
GetScalarProtoType ( string type ) : ProtoTypes

Return the type given the name from a .proto file. Return Unknonw if it is a message or an enum.

PrepareMessage ( Message m ) : void
PrepareProtoType ( Message m, Field f ) : void

Prepare: ProtoType, WireType and CSType

SearchMessageDown ( Message p, string name ) : MessageEnumBase

Search down for matching name

SearchMessageUp ( Message p, string name ) : MessageEnumBase

Searchs the message for matchink classes

Описание методов

Prepare() публичный статический метод

public static Prepare ( Proto proto ) : void
proto Proto
Результат void