diff options
author | csharptest <roger@csharptest.net> | 2011-06-10 01:09:57 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-06-10 01:09:57 -0500 |
commit | b00ea13eb1b8055a0cde89d01bbde6d95e5cd1a5 (patch) | |
tree | 52fd58c77ff0b54a7a9c6a41e5619a485f54e111 /src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs | |
parent | ced18e10ae9ca41f338c9e788642d705dd17f9d4 (diff) | |
download | protobuf-b00ea13eb1b8055a0cde89d01bbde6d95e5cd1a5.tar.gz protobuf-b00ea13eb1b8055a0cde89d01bbde6d95e5cd1a5.tar.bz2 protobuf-b00ea13eb1b8055a0cde89d01bbde6d95e5cd1a5.zip |
Refactoring the ICoded interfaces (again) removing the use of some generic methods.
Diffstat (limited to 'src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs')
-rw-r--r-- | src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs b/src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs index 7545d85b..f5fa46e5 100644 --- a/src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs +++ b/src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs @@ -126,7 +126,7 @@ namespace Google.ProtocolBuffers.TestProtos { int size = SerializedSize;
string[] field_names = _searchRequestFieldNames;
if (criteria_.Count > 0) {
- output.WriteArray(pbd::FieldType.String, 1, field_names[0], criteria_);
+ output.WriteStringArray(1, field_names[0], criteria_);
}
UnknownFields.WriteTo(output);
}
@@ -288,7 +288,7 @@ namespace Google.ProtocolBuffers.TestProtos { break;
}
case 10: {
- input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.criteria_);
+ input.ReadStringArray(tag, field_name, result.criteria_);
break;
}
}
@@ -677,7 +677,7 @@ namespace Google.ProtocolBuffers.TestProtos { int size = SerializedSize;
string[] field_names = _searchResponseFieldNames;
if (results_.Count > 0) {
- output.WriteArray(pbd::FieldType.Message, 1, field_names[0], results_);
+ output.WriteMessageArray(1, field_names[0], results_);
}
UnknownFields.WriteTo(output);
}
@@ -951,7 +951,7 @@ namespace Google.ProtocolBuffers.TestProtos { int size = SerializedSize;
string[] field_names = _refineSearchRequestFieldNames;
if (criteria_.Count > 0) {
- output.WriteArray(pbd::FieldType.String, 1, field_names[0], criteria_);
+ output.WriteStringArray(1, field_names[0], criteria_);
}
if (hasPreviousResults) {
output.WriteMessage(2, field_names[1], PreviousResults);
@@ -1122,7 +1122,7 @@ namespace Google.ProtocolBuffers.TestProtos { break;
}
case 10: {
- input.ReadPrimitiveArray(pbd::FieldType.String, tag, field_name, result.criteria_);
+ input.ReadStringArray(tag, field_name, result.criteria_);
break;
}
case 18: {
|