diff options
author | Jon Skeet <skeet@pobox.com> | 2008-08-15 21:15:41 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2008-08-15 21:15:41 +0100 |
commit | 984eb9c27a34c7c55fb26b5550627b776122b9f8 (patch) | |
tree | 83c0c5f988dd7bb12bf866c4ddcd515557949841 /src | |
parent | 3fa72c55560f867cef8911c03eb92741d19f129a (diff) | |
download | protobuf-984eb9c27a34c7c55fb26b5550627b776122b9f8.tar.gz protobuf-984eb9c27a34c7c55fb26b5550627b776122b9f8.tar.bz2 protobuf-984eb9c27a34c7c55fb26b5550627b776122b9f8.zip |
Just comments.
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_primitive_field.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc b/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc index 65ddf0e7..4bd6f499 100644 --- a/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc +++ b/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc @@ -243,10 +243,10 @@ GenerateMembers(io::Printer* printer) const { "public scg::IList<$type$> $capitalized_name$List {\r\n" " get { return $name$_; }\r\n" // note: unmodifiable list "}\r\n" - "public int $capitalized_name$Count {\r\n" // TODO(jonskeet): Remove? + "public int $capitalized_name$Count {\r\n" " get { return $name$_.Count; }\r\n" "}\r\n" - "public $type$ Get$capitalized_name$(int index) {\r\n" // TODO(jonskeet): Remove? + "public $type$ Get$capitalized_name$(int index) {\r\n" " return $name$_[index];\r\n" "}\r\n"); } @@ -257,7 +257,7 @@ GenerateBuilderMembers(io::Printer* printer) const { // Note: We return an unmodifiable list because otherwise the caller // could hold on to the returned list and modify it after the message // has been built, thus mutating the message which is supposed to be - // immutable. + // immutable. This unfortunately limits the use for collection initializers... "public scg::IList<$type$> $capitalized_name$List {\r\n" " get { return pbc::Lists<$type$>.AsReadOnly(result.$name$_); }\r\n" "}\r\n" |