C# Class Google.Protobuf.Reflection.GeneratedClrTypeInfo

Extra information provided by generated code when initializing a message or file descriptor. These are constructed as required, and are not long-lived. Hand-written code should never need to use this type.
Show file Open project: dropbox/protobuf Class Usage Examples

Public Methods

Method Description
GeneratedClrTypeInfo ( Type nestedEnums, GeneratedClrTypeInfo nestedTypes ) : System

Creates a GeneratedClrTypeInfo for a file descriptor, with only types and enums.

GeneratedClrTypeInfo ( Type clrType, MessageParser parser, string propertyNames, string oneofNames, Type nestedEnums, GeneratedClrTypeInfo nestedTypes ) : System

Creates a GeneratedClrTypeInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names. Each array parameter may be null, to indicate a lack of values. The parameter order is designed to make it feasible to format the generated code readably.

Method Details

GeneratedClrTypeInfo() public method

Creates a GeneratedClrTypeInfo for a file descriptor, with only types and enums.
public GeneratedClrTypeInfo ( Type nestedEnums, GeneratedClrTypeInfo nestedTypes ) : System
nestedEnums System.Type
nestedTypes GeneratedClrTypeInfo
return System

GeneratedClrTypeInfo() public method

Creates a GeneratedClrTypeInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names. Each array parameter may be null, to indicate a lack of values. The parameter order is designed to make it feasible to format the generated code readably.
public GeneratedClrTypeInfo ( Type clrType, MessageParser parser, string propertyNames, string oneofNames, Type nestedEnums, GeneratedClrTypeInfo nestedTypes ) : System
clrType System.Type
parser MessageParser
propertyNames string
oneofNames string
nestedEnums System.Type
nestedTypes GeneratedClrTypeInfo
return System