diff options
author | csharptest <roger@csharptest.net> | 2012-10-14 23:03:24 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2012-10-14 23:03:24 -0500 |
commit | c9bce45a01cc8861ec7c88e84d947ed6ebc8f7d1 (patch) | |
tree | 67b0bed46bb50ec47a383fc355db4a73d568b482 /src/ProtocolBuffers/CodedInputStream.cs | |
parent | 9f787cc64e47333ea717681c874843b44fee60e7 (diff) | |
download | protobuf-c9bce45a01cc8861ec7c88e84d947ed6ebc8f7d1.tar.gz protobuf-c9bce45a01cc8861ec7c88e84d947ed6ebc8f7d1.tar.bz2 protobuf-c9bce45a01cc8861ec7c88e84d947ed6ebc8f7d1.zip |
Portability Changes -
Removing uses of Enum to IConvertible from CodedIOStreams,
Removed MessageStreamIterator.FromFile on non-client profiles,
Removed use of Path.GetFileName,
Removed uses of Converter<T1, T2> delegate,
Removed Guid/DispId options from test protos
Diffstat (limited to 'src/ProtocolBuffers/CodedInputStream.cs')
-rw-r--r-- | src/ProtocolBuffers/CodedInputStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ProtocolBuffers/CodedInputStream.cs b/src/ProtocolBuffers/CodedInputStream.cs index e4d690b5..ab18f9d7 100644 --- a/src/ProtocolBuffers/CodedInputStream.cs +++ b/src/ProtocolBuffers/CodedInputStream.cs @@ -449,7 +449,7 @@ namespace Google.ProtocolBuffers /// </summary>
[CLSCompliant(false)]
public bool ReadEnum<T>(ref T value, out object unknown)
- where T : struct, IComparable, IFormattable, IConvertible
+ where T : struct, IComparable, IFormattable
{
int number = (int) ReadRawVarint32();
if (Enum.IsDefined(typeof(T), number))
@@ -882,7 +882,7 @@ namespace Google.ProtocolBuffers [CLSCompliant(false)]
public void ReadEnumArray<T>(uint fieldTag, string fieldName, ICollection<T> list,
out ICollection<object> unknown)
- where T : struct, IComparable, IFormattable, IConvertible
+ where T : struct, IComparable, IFormattable
{
unknown = null;
object unkval;
|