diff options
author | Jon Skeet <jonskeet@google.com> | 2015-07-30 13:03:45 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-07-30 13:36:45 +0100 |
commit | 68380f0f6681c72a5d4ab5e69abc9670e9d99838 (patch) | |
tree | f924bcd3a601cb55540924cc28fa7bbc600792cd /csharp/src/Google.Protobuf/Google.Protobuf.csproj | |
parent | 7909b2edeb19affdf3f96a0b13a8098f28860c3c (diff) | |
download | protobuf-68380f0f6681c72a5d4ab5e69abc9670e9d99838.tar.gz protobuf-68380f0f6681c72a5d4ab5e69abc9670e9d99838.tar.bz2 protobuf-68380f0f6681c72a5d4ab5e69abc9670e9d99838.zip |
Rename ThrowHelper to Preconditions and make it public - we'll want to use it from the generated code soon.
Additionally, change it to return the value passed, and make it generic with a class constraint.
A separate method doesn't have the class constraint, for more unusual scenarios.
Diffstat (limited to 'csharp/src/Google.Protobuf/Google.Protobuf.csproj')
-rw-r--r-- | csharp/src/Google.Protobuf/Google.Protobuf.csproj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/Google.Protobuf.csproj b/csharp/src/Google.Protobuf/Google.Protobuf.csproj index b141e434..7de4f51b 100644 --- a/csharp/src/Google.Protobuf/Google.Protobuf.csproj +++ b/csharp/src/Google.Protobuf/Google.Protobuf.csproj @@ -96,7 +96,7 @@ <Compile Include="Reflection\RepeatedFieldAccessor.cs" />
<Compile Include="Reflection\ServiceDescriptor.cs" />
<Compile Include="Reflection\SingleFieldAccessor.cs" />
- <Compile Include="ThrowHelper.cs" />
+ <Compile Include="Preconditions.cs" />
<Compile Include="WellKnownTypes\Any.cs" />
<Compile Include="WellKnownTypes\Api.cs" />
<Compile Include="WellKnownTypes\Duration.cs" />
|