aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/WellKnownTypes/Any.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/Any.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/Any.cs')
-rw-r--r--csharp/src/Google.Protobuf/WellKnownTypes/Any.cs9
1 files changed, 0 insertions, 9 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Any.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
index d92f148d..7882b991 100644
--- a/csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+++ b/csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
@@ -69,19 +69,11 @@ namespace Google.Protobuf.WellKnownTypes {
return new Any(this);
}
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
-
public const int TypeUrlFieldNumber = 1;
private string typeUrl_ = "";
public string TypeUrl {
get { return typeUrl_; }
set {
- pb::Freezable.CheckMutable(this);
typeUrl_ = value ?? "";
}
}
@@ -91,7 +83,6 @@ namespace Google.Protobuf.WellKnownTypes {
public pb::ByteString Value {
get { return value_; }
set {
- pb::Freezable.CheckMutable(this);
value_ = value ?? pb::ByteString.Empty;
}
}