Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed May 30, 2022
1 parent 97e5748 commit 17c4a07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Common.Essentials.Xamarin/EssentialsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public static partial class EssentialsExtensions
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static XEBrowserLaunchMode Convert(this BrowserLaunchMode value)
=> (XEBrowserLaunchMode)(int)value;
=> (XEBrowserLaunchMode)value;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static XEBrowserTitleMode Convert(this BrowserTitleMode value)
=> (XEBrowserTitleMode)(int)value;
=> (XEBrowserTitleMode)value;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static XEBrowserLaunchFlags Convert(this BrowserLaunchFlags value)
=> (XEBrowserLaunchFlags)(int)value;
=> (XEBrowserLaunchFlags)value;

#if MAUI
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down Expand Up @@ -79,7 +79,7 @@ public static XEBrowserLaunchOptions Convert(this BrowserLaunchOptions value)

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static DeviceType Convert(this XEDeviceType value)
=> (DeviceType)(int)value;
=> (DeviceType)value;

/// <summary>
/// 将 <see cref="XEDeviceIdiom"/> 转换为 <see cref="DeviceIdiom"/>
Expand All @@ -99,7 +99,7 @@ public static DeviceType Convert(this XEDeviceType value)

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static XEEmailBodyFormat Convert(this EmailBodyFormat value)
=> (XEEmailBodyFormat)(int)value;
=> (XEEmailBodyFormat)value;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static XEEmailAttachment Convert(this IEmailAttachment value)
Expand Down Expand Up @@ -151,11 +151,11 @@ public static XEEmailAttachment Convert(this IEmailAttachment value)

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static PermissionStatus Convert(this XEPermissionStatus value)
=> (PermissionStatus)(int)value;
=> (PermissionStatus)value;

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static NetworkAccess Convert(this XENetworkAccess value)
=> (NetworkAccess)(int)value;
=> (NetworkAccess)value;

[return: NotNullIfNotNull("value")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down

0 comments on commit 17c4a07

Please sign in to comment.