Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
f0327166
Commit
f0327166
authored
Jul 30, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More freezing tidy-up; generated code in next commit.
parent
3b2fe97b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
RepeatedField.cs
csharp/src/Google.Protobuf/Collections/RepeatedField.cs
+1
-2
csharp_message.cc
src/google/protobuf/compiler/csharp/csharp_message.cc
+1
-3
No files found.
csharp/src/Google.Protobuf/Collections/RepeatedField.cs
View file @
f0327166
...
...
@@ -40,7 +40,7 @@ namespace Google.Protobuf.Collections
{
/// <summary>
/// The contents of a repeated field: essentially, a collection with some extra
/// restrictions (no null values) and capabilities (deep cloning
and freezing
).
/// restrictions (no null values) and capabilities (deep cloning).
/// </summary>
/// <typeparam name="T">The element type of the repeated field.</typeparam>
public
sealed
class
RepeatedField
<
T
>
:
IList
<
T
>,
IList
,
IDeepCloneable
<
RepeatedField
<
T
>>,
IEquatable
<
RepeatedField
<
T
>>
...
...
@@ -65,7 +65,6 @@ namespace Google.Protobuf.Collections
public
RepeatedField
<
T
>
Clone
()
{
RepeatedField
<
T
>
clone
=
new
RepeatedField
<
T
>();
// Clone is implicitly *not* frozen, even if this object is.
if
(
array
!=
EmptyArray
)
{
clone
.
array
=
(
T
[])
array
.
Clone
();
...
...
src/google/protobuf/compiler/csharp/csharp_message.cc
View file @
f0327166
...
...
@@ -134,9 +134,7 @@ void MessageGenerator::Generate(io::Printer* printer) {
"pbr::MessageDescriptor pb::IMessage.Descriptor {
\n
"
" get { return Descriptor; }
\n
"
"}
\n
"
"
\n
"
"private bool _frozen = false;
\n
"
"public bool IsFrozen { get { return _frozen; } }
\n\n
"
);
"
\n
"
);
// Parameterless constructor and partial OnConstruction method.
printer
->
Print
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment