// Decode each simple type in message. private object DecodeProp(string type, JsonObject proto) { switch (type) { case "uInt32": return(Decoder.DecodeUInt64(this.GetBytes())); case "int32": case "sInt32": return(Decoder.DecodeSInt32(this.GetBytes())); case "float": return(this.DecodeFloat()); case "double": return(this.DecodeDouble()); case "string": return(this.DecodeString()); default: return(this.decodeObject(type, proto)); } }