aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-07-30 09:47:38 +0100
committerJon Skeet <skeet@pobox.com>2015-07-30 09:47:38 +0100
commit7a0effb9e956ee5509d99a33f7d8fb52a9636871 (patch)
tree8bae164441950d8792d1b1612596809e45e9ce82 /csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
parent9cfea1d6f6b81462021b928f45c732cd9920d869 (diff)
parent7ec023acf4019e5401d4e147204ba5de12eed226 (diff)
downloadprotobuf-7a0effb9e956ee5509d99a33f7d8fb52a9636871.tar.gz
protobuf-7a0effb9e956ee5509d99a33f7d8fb52a9636871.tar.bz2
protobuf-7a0effb9e956ee5509d99a33f7d8fb52a9636871.zip
Merge pull request #654 from jtattermusch/csharp_hide_freeze
Remove the C# Freeze API
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs')
-rw-r--r--csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs9
1 files changed, 0 insertions, 9 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
index f874065b..f66b1f43 100644
--- a/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
+++ b/csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
@@ -70,19 +70,11 @@ namespace Google.Protobuf.WellKnownTypes {
return new Timestamp(this);
}
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
public const int SecondsFieldNumber = 1;
private long seconds_;
public long Seconds {
get { return seconds_; }
set {
- pb::Freezable.CheckMutable(this);
seconds_ = value;
}
}
@@ -92,7 +84,6 @@ namespace Google.Protobuf.WellKnownTypes {
public int Nanos {
get { return nanos_; }
set {
- pb::Freezable.CheckMutable(this);
nanos_ = value;
}
}