Fix the typo (#44075)
authorSingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
Sun, 1 Nov 2020 03:00:39 +0000 (06:00 +0300)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 03:00:39 +0000 (23:00 -0400)
src/libraries/System.IO.Ports/tests/Support/SerialPortProperties.cs

index 46f6e7f..40f1c22 100644 (file)
@@ -261,7 +261,7 @@ namespace Legacy.Support
             LoadFields("default", _defaultProperties);
         }
 
-        private void LoadFields(string stratsWith, Hashtable fields)
+        private void LoadFields(string startsWith, Hashtable fields)
         {
             Type serialPropertiesType = typeof(SerialPortProperties);
 
@@ -273,9 +273,9 @@ namespace Legacy.Support
             {
                 string defaultFieldName = defaultField.Name;
 
-                if (0 == defaultFieldName.IndexOf(stratsWith))
+                if (0 == defaultFieldName.IndexOf(startsWith))
                 {
-                    string fieldName = defaultFieldName.Replace(stratsWith, "");
+                    string fieldName = defaultFieldName.Replace(startsWith, "");
                     object defaultValue = defaultField.GetValue(this);
 
                     fields[fieldName] = defaultValue;