| OLD | NEW |
| 1 #region Copyright notice and license | 1 #region Copyright notice and license |
| 2 // Protocol Buffers - Google's data interchange format | 2 // Protocol Buffers - Google's data interchange format |
| 3 // Copyright 2008 Google Inc. All rights reserved. | 3 // Copyright 2008 Google Inc. All rights reserved. |
| 4 // https://developers.google.com/protocol-buffers/ | 4 // https://developers.google.com/protocol-buffers/ |
| 5 // | 5 // |
| 6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
| 7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
| 8 // met: | 8 // met: |
| 9 // | 9 // |
| 10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 /// </summary> | 40 /// </summary> |
| 41 internal static class FrameworkPortability | 41 internal static class FrameworkPortability |
| 42 { | 42 { |
| 43 // The value of RegexOptions.Compiled is 8. We can test for the presence
at | 43 // The value of RegexOptions.Compiled is 8. We can test for the presence
at |
| 44 // execution time using Enum.IsDefined, so a single build will do the ri
ght thing | 44 // execution time using Enum.IsDefined, so a single build will do the ri
ght thing |
| 45 // on each platform. (RegexOptions.Compiled isn't supported by PCLs.) | 45 // on each platform. (RegexOptions.Compiled isn't supported by PCLs.) |
| 46 internal static readonly RegexOptions CompiledRegexWhereAvailable = | 46 internal static readonly RegexOptions CompiledRegexWhereAvailable = |
| 47 Enum.IsDefined(typeof(RegexOptions), 8) ? (RegexOptions)8 : RegexOpt
ions.None; | 47 Enum.IsDefined(typeof(RegexOptions), 8) ? (RegexOptions)8 : RegexOpt
ions.None; |
| 48 } | 48 } |
| 49 } | 49 } |
| OLD | NEW |