Skip to content

Commit

Permalink
Clean up macros in PRODUCTION code #3
Browse files Browse the repository at this point in the history
  • Loading branch information
lewischeng-ms committed May 13, 2015
1 parent 84ad570 commit 6c59557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.OData.Client/DataServiceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3466,7 +3466,7 @@ private static class ClientEdmModelCache
static ClientEdmModelCache()
{
IEnumerable<ODataProtocolVersion> protocolVersions =
#if PORTABLELIB
#if PORTABLELIB // Portable lib does not support Enum.GetValues()
typeof(ODataProtocolVersion).GetFields().Where(f => f.IsLiteral).Select(f => f.GetValue(typeof(ODataProtocolVersion))).Cast<ODataProtocolVersion>();
#else
Enum.GetValues(typeof(ODataProtocolVersion)).Cast<ODataProtocolVersion>();
Expand Down

0 comments on commit 6c59557

Please sign in to comment.