Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c8a0e6

Browse files
committed
Remove another pattern match.
1 parent49e9f1a commit2c8a0e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎vsintegration/src/FSharp.UIResources/IntegerRangeValidationRule.cs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
usingSystem.Globalization;
1+
2+
usingSystem.Globalization;
23
usingSystem.Windows.Controls;
34

45
namespaceMicrosoft.VisualStudio.FSharp.UIResources
@@ -20,7 +21,8 @@ public override ValidationResult Validate(object value, CultureInfo cultureInfo)
2021
if(valueisstring)
2122
{
2223
vartext=(string)value;
23-
if(int.TryParse(text,outinti)&&
24+
inti=0;
25+
if(int.TryParse(text,outi)&&
2426
i>=Min&&i<=Max)
2527
{
2628
returnValidationResult.ValidResult;
@@ -30,4 +32,4 @@ public override ValidationResult Validate(object value, CultureInfo cultureInfo)
3032
returnnewValidationResult(false,$"Expected a number between{Min} and{Max}");
3133
}
3234
}
33-
}
35+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp