コード例 #1
0
        /// <summary>
        /// Gets the text of the type.
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string ToString(GeneratedNamespace ns, Language language)
        {
            if (ns == null)
            {
                throw new ArgumentNullException("ns");
            }

            // return...
            return(ToStringInternal(ns, language));
        }
コード例 #2
0
        ///<summary>Entry point</summary>
        public bool Launch()
        {
            InstallResources();

            var p = ProtozbuffLoader.Load(ProtoZFile);

            // protobufs package option (i.e. namespace) needs dots
            var protobufPackage = GeneratedNamespace.Replace(NamespaceSeparator, ".");

            ProtoGenerator.Generate(p, ProtoFile, protobufPackage); // generate .proto file

            CallProtocExe();

            return(GenerateLazyImplementation(p));
        }