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
ea48104c
Commit
ea48104c
authored
May 01, 2015
by
Jie Luo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comments
parent
41c175e7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
FieldPresenceTest.cs
csharp/src/ProtocolBuffers.Test/FieldPresenceTest.cs
+1
-1
FileDescriptor.cs
csharp/src/ProtocolBuffers/Descriptors/FileDescriptor.cs
+3
-3
FieldAccessorTable.cs
csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs
+1
-1
SinglePrimitiveAccessor.cs
...rc/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs
+0
-1
No files found.
csharp/src/ProtocolBuffers.Test/FieldPresenceTest.cs
View file @
ea48104c
...
...
@@ -163,7 +163,7 @@ namespace Google.ProtocolBuffers
}
[
Fact
]
public
void
TestSeralizeAndParse
()
public
void
TestSer
i
alizeAndParse
()
{
TestAllTypes
.
Builder
builder
=
TestAllTypes
.
CreateBuilder
();
builder
.
SetOptionalInt32
(
1234
);
...
...
csharp/src/ProtocolBuffers/Descriptors/FileDescriptor.cs
View file @
ea48104c
...
...
@@ -56,13 +56,13 @@ namespace Google.ProtocolBuffers.Descriptors
public
enum
ProtoSyntax
{
P
ROTO
2
,
P
ROTO
3
P
roto
2
,
P
roto
3
}
public
ProtoSyntax
Syntax
{
get
{
return
proto
.
Syntax
==
"proto3"
?
ProtoSyntax
.
P
ROTO3
:
ProtoSyntax
.
PROTO
2
;
}
get
{
return
proto
.
Syntax
==
"proto3"
?
ProtoSyntax
.
P
roto3
:
ProtoSyntax
.
Proto
2
;
}
}
private
FileDescriptor
(
FileDescriptorProto
proto
,
FileDescriptor
[]
dependencies
,
DescriptorPool
pool
,
bool
allowUnknownDependencies
)
...
...
csharp/src/ProtocolBuffers/FieldAccess/FieldAccessorTable.cs
View file @
ea48104c
...
...
@@ -68,7 +68,7 @@ namespace Google.ProtocolBuffers.FieldAccess
{
this
.
descriptor
=
descriptor
;
accessors
=
new
IFieldAccessor
<
TMessage
,
TBuilder
>[
descriptor
.
Fields
.
Count
];
bool
supportFieldPresence
=
descriptor
.
File
.
Syntax
==
FileDescriptor
.
ProtoSyntax
.
P
ROTO
2
;
bool
supportFieldPresence
=
descriptor
.
File
.
Syntax
==
FileDescriptor
.
ProtoSyntax
.
P
roto
2
;
for
(
int
i
=
0
;
i
<
accessors
.
Length
;
i
++)
{
accessors
[
i
]
=
CreateAccessor
(
descriptor
.
Fields
[
i
],
propertyNames
[
i
],
supportFieldPresence
);
...
...
csharp/src/ProtocolBuffers/FieldAccess/SinglePrimitiveAccessor.cs
View file @
ea48104c
...
...
@@ -43,7 +43,6 @@ namespace Google.ProtocolBuffers.FieldAccess
where
TBuilder
:
IBuilder
<
TMessage
,
TBuilder
>
{
private
readonly
Type
clrType
;
private
readonly
FieldDescriptor
field
;
private
readonly
Func
<
TMessage
,
object
>
getValueDelegate
;
private
readonly
Action
<
TBuilder
,
object
>
setValueDelegate
;
private
readonly
Func
<
TMessage
,
bool
>
hasDelegate
;
...
...
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