2121using System ;
2222using System . Globalization ;
2323
24+ #nullable enable
25+
2426namespace OpenQA . Selenium . Edge
2527{
2628 /// <summary>
@@ -60,27 +62,21 @@ public EdgeOptions() : base()
6062 /// <summary>
6163 /// Gets the vendor prefix to apply to Chromium-specific capability names.
6264 /// </summary>
63- protected override string VendorPrefix
64- {
65- get { return "ms" ; }
66- }
65+ protected override string VendorPrefix => "ms" ;
6766
6867 /// <summary>
6968 /// Gets the name of the capability used to store Chromium options in
7069 /// an <see cref="ICapabilities"/> object.
7170 /// </summary>
72- public override string CapabilityName
73- {
74- get { return string . Format ( CultureInfo . InvariantCulture , "{0}:{1}" , this . VendorPrefix , EdgeOptionsCapabilityName ) ; }
75- }
71+ public override string CapabilityName => string . Format ( CultureInfo . InvariantCulture , "{0}:{1}" , this . VendorPrefix , EdgeOptionsCapabilityName ) ;
7672
7773 /// <summary>
7874 /// Gets or sets whether to create a WebView session used for launching an Edge (Chromium) WebView-based app on desktop.
7975 /// </summary>
8076 public bool UseWebView
8177 {
82- get { return this . BrowserName == WebViewBrowserNameValue ; }
83- set { this . BrowserName = value ? WebViewBrowserNameValue : DefaultBrowserNameValue ; }
78+ get => this . BrowserName == WebViewBrowserNameValue ;
79+ set => this . BrowserName = value ? WebViewBrowserNameValue : DefaultBrowserNameValue ;
8480 }
8581
8682 /// <summary>
@@ -97,7 +93,7 @@ public bool UseWebView
9793 /// where <paramref name="optionName"/> has already been added will overwrite the
9894 /// existing value with the new value in <paramref name="optionValue"/>.
9995 /// Calling this method adds capabilities to the Edge-specific options object passed to
100- /// webdriver executable (property name 'ms:edgeOptions').</remarks>
96+ /// WebDriver executable (property name 'ms:edgeOptions').</remarks>
10197 public void AddAdditionalEdgeOption ( string optionName , object optionValue )
10298 {
10399 this . AddAdditionalChromiumOption ( optionName , optionValue ) ;
0 commit comments