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
43619bb6
Commit
43619bb6
authored
Mar 21, 2019
by
Sydney Acksman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomment option code in OneofDescriptor
parent
03872044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
OneofDescriptor.cs
csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
+2
-4
No files found.
csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
View file @
43619bb6
...
...
@@ -105,17 +105,16 @@ namespace Google.Protobuf.Reflection
/// <summary>
/// The (possibly empty) set of custom options for this oneof.
/// </summary>
//
[Obsolete("CustomOptions are obsolete. Use GetOption")]
[
Obsolete
(
"CustomOptions are obsolete. Use GetOption"
)]
public
CustomOptions
CustomOptions
=>
new
CustomOptions
(
proto
.
Options
.
_extensions
?.
ValuesByNumber
);
/* // uncomment this in the full proto2 support PR
/// <summary>
/// Gets a single value enum option for this descriptor
/// </summary>
public
T
GetOption
<
T
>(
Extension
<
OneofOptions
,
T
>
extension
)
{
var
value
=
proto
.
Options
.
GetExtension
(
extension
);
return value is IDeepCloneable<T>
clonable ? clonable
.Clone() : value;
return
value
is
IDeepCloneable
<
T
>
?
(
value
as
IDeepCloneable
<
T
>)
.
Clone
()
:
value
;
}
/// <summary>
...
...
@@ -125,7 +124,6 @@ namespace Google.Protobuf.Reflection
{
return
proto
.
Options
.
GetExtension
(
extension
).
Clone
();
}
*/
internal
void
CrossLink
()
{
...
...
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