If you're using protobuf-csharp-port, you may want to try out this patch 
which generates protobuf classes with native Decimal and DateTime structs. 
Wire format wise, they are represented by two "built-in" proto messages.

Here is the link:
https://code.google.com/p/protobuf-csharp-port/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=78

On Thursday, April 5, 2012 9:05:18 AM UTC-3, Jawaid Hakim wrote:
>
> C# has a decimal type and Java has BigDecimal - 'decimal' seems like a 
> generic data type name for Protocol Buffers.
>
> I hear you about making contributing a module; will see if that is 
> possible.
>
> Jawaid Hakim
> Chief Technology Officer
> CodeStreet LLC
> 646 442 2804
> www.codestreet.com
>
>
> -----Original Message-----
> From: Christopher Smith [mailto:[email protected] <javascript:>] 
> Sent: Thursday, April 05, 2012 12:58 AM
> To: Jawaid Hakim
> Cc: Alexandru Turc; Protocol Buffers
> Subject: Re: [protobuf] Additional data types
>
> Nothing prevents you from making a module available for everyone's 
> benefit. If it is broadly useful, it will undoubtedly be universally 
> adopted.
>
> --Chris
>
> P.S.: What is a "decimal type"?
>
> On Apr 4, 2012, at 2:21 PM, Jawaid Hakim 
> <[email protected]<javascript:>> 
> wrote:
>
> > Date and decimal types are ubiquitous and in wide use.  Language 
> specific bindings could easily be created - this is exactly what we do in 
> some other open source projects that I contribute to. The way I envision 
> it, protocol buffers would provide 'date' and 'decimal' types - protoc 
> compiler would compile these into language specific data types (e.g. 
> java.util.Date for Java and DateTime for C#).
> > 
> > Jawaid Hakim
> > Chief Technology Officer
> > CodeStreet LLC
> > 646 442 2804
> > www.codestreet.com
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Alexandru Turc [mailto:[email protected] <javascript:>] 
> > Sent: Wednesday, April 04, 2012 5:09 PM
> > To: Jawaid Hakim
> > Cc: Protocol Buffers
> > Subject: Re: [protobuf] Additional data types
> > 
> > 
> > proto files are mapped to many languages, Date and BigDecimal are java 
> specific. 
> > 
> > On Apr 4, 2012, at 9:37 AM, jhakim wrote:
> > 
> >> Any plans to provide out-of-the-box for commonly used data types such
> >> as Date (encoded as String) and BigDecimal/BigInteger types? Seems
> >> this would be of interest to a lot of users.
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups "Protocol Buffers" group.
> >> To post to this group, send email to [email protected]<javascript:>
> .
> >> To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> >> For more options, visit this group at 
> http://groups.google.com/group/protobuf?hl=en.
> >> 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Protocol Buffers" group.
> > To post to this group, send email to [email protected]<javascript:>
> .
> > To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> > For more options, visit this group at 
> http://groups.google.com/group/protobuf?hl=en.
> > 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to