File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static class ScreenOrientationExtensions
27
27
/// <param name="orientation"></param>
28
28
/// <returns></returns>
29
29
public static string JSONWireProtocolString ( this ScreenOrientation orientation ) =>
30
- orientation . ToString ( ) . ToUpper ( ) ;
30
+ orientation . ToString ( ) . ToUpperInvariant ( ) ;
31
31
32
32
/// <summary>
33
33
/// Converts the string to a screen orientation if possible, else throws ArgumentOutOfRangeException
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ private string ParseCapabilitiesIfWindows()
107
107
{
108
108
if ( typeof ( bool ) . IsAssignableFrom ( value . GetType ( ) ) )
109
109
{
110
- value = Convert . ToString ( value ) . ToLower ( ) ;
110
+ value = Convert . ToString ( value ) . ToLowerInvariant ( ) ;
111
111
}
112
112
}
113
113
@@ -153,7 +153,7 @@ private string ParseCapabilitiesIfUNIX()
153
153
{
154
154
if ( typeof ( bool ) . IsAssignableFrom ( value . GetType ( ) ) )
155
155
{
156
- value = Convert . ToString ( value ) . ToLower ( ) ;
156
+ value = Convert . ToString ( value ) . ToLowerInvariant ( ) ;
157
157
}
158
158
}
159
159
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public enum VideoType
24
24
/// <returns>self instance for chaining.</returns>
25
25
public IOSStartScreenRecordingOptions WithVideoType ( VideoType videoType )
26
26
{
27
- Parameters [ "videoType" ] = videoType . ToString ( ) . ToLower ( ) ;
27
+ Parameters [ "videoType" ] = videoType . ToString ( ) . ToLowerInvariant ( ) ;
28
28
return this ;
29
29
}
30
30
@@ -54,7 +54,7 @@ public enum VideoQuality
54
54
/// <returns></returns>
55
55
public IOSStartScreenRecordingOptions WithVideoQuality ( VideoQuality videoQuality )
56
56
{
57
- Parameters [ "videoQuality" ] = videoQuality . ToString ( ) . ToLower ( ) ;
57
+ Parameters [ "videoQuality" ] = videoQuality . ToString ( ) . ToLowerInvariant ( ) ;
58
58
return this ;
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ private static void Init()
49
49
50
50
private static bool IsTrue ( object val )
51
51
{
52
- val = val ? . ToString ( ) . ToLower ( ) . Trim ( ) ;
52
+ val = val ? . ToString ( ) . ToLowerInvariant ( ) . Trim ( ) ;
53
53
return val . Equals ( "true" ) || val . Equals ( "1" ) ;
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments