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
09761a89
Commit
09761a89
authored
Oct 15, 2012
by
csharptest
Committed by
rogerk
Oct 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build fixes from portable changes
parent
c9bce45a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
ReflectionUtil.cs
src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
+4
-4
TextFormat.cs
src/ProtocolBuffers/TextFormat.cs
+4
-0
No files found.
src/ProtocolBuffers/FieldAccess/ReflectionUtil.cs
View file @
09761a89
...
...
@@ -136,7 +136,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal
static
Func
<
TResult
>
CreateDelegateFunc
<
TResult
>(
MethodInfo
method
)
{
#if !
NOCREATEDELEGATE
#if !
CF20
object
tdelegate
=
Delegate
.
CreateDelegate
(
typeof
(
Func
<
TResult
>),
null
,
method
);
return
(
Func
<
TResult
>)
tdelegate
;
#else
...
...
@@ -146,7 +146,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal
static
Func
<
T
,
TResult
>
CreateDelegateFunc
<
T
,
TResult
>(
MethodInfo
method
)
{
#if !
NOCREATEDELEGATE
#if !
CF20
object
tdelegate
=
Delegate
.
CreateDelegate
(
typeof
(
Func
<
T
,
TResult
>),
null
,
method
);
return
(
Func
<
T
,
TResult
>)
tdelegate
;
#else
...
...
@@ -160,7 +160,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal
static
Func
<
T1
,
T2
,
TResult
>
CreateDelegateFunc
<
T1
,
T2
,
TResult
>(
MethodInfo
method
)
{
#if !
NOCREATEDELEGATE
#if !
CF20
object
tdelegate
=
Delegate
.
CreateDelegate
(
typeof
(
Func
<
T1
,
T2
,
TResult
>),
null
,
method
);
return
(
Func
<
T1
,
T2
,
TResult
>)
tdelegate
;
#else
...
...
@@ -174,7 +174,7 @@ namespace Google.ProtocolBuffers.FieldAccess
internal
static
Action
<
T1
,
T2
>
CreateDelegateAction
<
T1
,
T2
>(
MethodInfo
method
)
{
#if !
NOCREATEDELEGATE
#if !
CF20
object
tdelegate
=
Delegate
.
CreateDelegate
(
typeof
(
Action
<
T1
,
T2
>),
null
,
method
);
return
(
Action
<
T1
,
T2
>)
tdelegate
;
#else
...
...
src/ProtocolBuffers/TextFormat.cs
View file @
09761a89
...
...
@@ -708,7 +708,11 @@ namespace Google.ProtocolBuffers
{
// Explicitly specify the invariant culture so that this code does not break when
// executing in Turkey.
#if PORTABLE_LIBRARY
String
lowerName
=
name
.
ToLowerInvariant
();
#else
String
lowerName
=
name
.
ToLower
(
FrameworkPortability
.
InvariantCulture
);
#endif
field
=
type
.
FindDescriptor
<
FieldDescriptor
>(
lowerName
);
// If the case-insensitive match worked but the field is NOT a group,
// TODO(jonskeet): What? Java comment ends here!
...
...
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