C# Class ProtocolBuffers.ProtoPrepare

Exibir arquivo Open project: enyim/ProtoBuf

Public Methods

Method Description
Prepare ( Proto proto ) : void

Private Methods

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

Method Details

Prepare() public static method

public static Prepare ( Proto proto ) : void
proto Proto
return void