Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

yanghuan/CSharpGeneratorForProton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

40 Commits

Repository files navigation

English Chinese

CSharpGeneratorForProton

CSharpGeneratorForProton generated C # code that reads xml, json, protobuf for proton. And xml, json can be converted to protobuf binary format (using protobuf-net).

Command Line Parameters

Usage: CSharpGeneratorForProton [-p schemaFile] [-f output] [-n namespace]
Arguments
-p : schema file, Proton output
-f : output directory, will put the generated class code
-n : namespace of the generated class

Options
-t : suffix, generates the suffix for the class
-e : open convert exportfile to protobuf
-d : protobuf binary data output directory, use only when '-e' exists
-b : protobuf binary data file extension, use only when '-e' exists
-h : show the help message and exit

Generated Code Import

Generated C # code is not associated with the specific format, the specific read operation, are assigned to the GeneratorUtility class for processing, so the need to add the corresponding class into the project. The code is under the Directory GeneratorUtility, you can modify the code according to the specific requirements, such as replacing the namespace, replace the read Library and so on.

Example

Example, A project is an instance of a full load configuration that generated by proton's sample.

License

Apache 2.0 license.


CSharpGeneratorForProton

CSharpGeneratorForProton Shi Wei protonChan Sheng Du Qu xml, json, protobufDe C#De Dai Ma . Qi Huan Ke Jiang xml, jsonPei Zhi Wen Jian Zhuan Huan Cheng protobufEr Jin Zhi Ge Shi .

Ming Ling Xing Can Shu

Usage: CSharpGeneratorForProton [-p schemaFile] [-f output] [-n namespace]
Arguments
-p : schema file, Proton output
-f : output directory, will put the generated class code
-n : namespace of the generated class

Options
-t : suffix, generates the suffix for the class
-e : open convert exportfile to protobuf
-d : protobuf binary data output directory, use only when '-e' exists
-b : protobuf binary data file extension, use only when '-e' exists
-h : show the help message and exit

Dao Ru Sheng Cheng De Dai Ma

Sheng Cheng De C#Dai Ma Bing Bu Yu Ju Ti Ge Shi Xiang Guan Lian ,Ju Ti Du Qu Cao Zuo ,Jun Wai Pai Gei GeneratorUtilityGong Ju Lei Jin Xing Chu Li ,Suo Yi Huan Xu Jiang Dui Ying Gong Ju Lei Tian Jia Ru Gong Cheng . Dai Ma Jun Zai Mu Lu GeneratorUtilityXia ,Ke An Ju Ti Shi Yong Yao Qiu Xiu Gai Qi Dai Ma ,Li Ru Geng Huan Ming Ming Kong Jian , Geng Huan Du Qu Ku Deng .

Shi Li Gong Cheng

ExampleGong Cheng Shi Yi Ge Wan Zheng De Zai Ru Pei Zhi De Shi Li ,Qi Zai Ru Pei Zhi Shi Tong Guo protonDe Shi Li Dao Chu De .

Xu Ke Zheng

Apache 2.0 license.

About

Generates C# code for Proton reading xml, json, protobuf

Resources

Readme

License

View license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages