File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88 <SingleProject >true</SingleProject >
99 <MauiVersion >6.0.486</MauiVersion >
1010 <PackageId >InputKit.Maui</PackageId >
11- <Version >4.1.0 </Version >
11+ <Version >4.1.1 </Version >
1212 <DefineConstants Condition =" $(TargetFramework.Contains('-windows'))" >$(DefineConstants);UWP</DefineConstants >
1313
1414 <!-- NuGet Package Info -->
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public bool Validate(object value)
1313 }
1414
1515 var converted = ComparableTypeConverter . Instance . ConvertFrom ( value ) ;
16- if ( converted is IComparable comparable )
16+ if ( converted is IComparable comparable && converted . GetType ( ) == comparable . GetType ( ) )
1717 {
1818 return comparable . CompareTo ( MaxValue ) <= 0 ;
1919 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public bool Validate(object value)
1919
2020 var converted = ComparableTypeConverter . Instance . ConvertFrom ( value ) ;
2121
22- if ( converted is IComparable comparable )
22+ if ( converted is IComparable comparable && converted . GetType ( ) == comparable . GetType ( ) )
2323 {
2424 return comparable . CompareTo ( MinValue ) >= 0 ;
2525 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public bool Validate(object value)
1616 }
1717
1818 var converted = ComparableTypeConverter . Instance . ConvertFrom ( value ) ;
19- if ( converted is IComparable comparable )
19+ if ( converted is IComparable comparable && converted . GetType ( ) == comparable . GetType ( ) )
2020 {
2121 return comparable . CompareTo ( MaxValue ) <= 0 ;
2222 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public bool Validate(object value)
2121
2222 var converted = ComparableTypeConverter . Instance . ConvertFrom ( value ) ;
2323
24- if ( converted is IComparable comparable )
24+ if ( converted is IComparable comparable && converted . GetType ( ) == comparable . GetType ( ) )
2525 {
2626 return comparable . CompareTo ( MinValue ) >= 0 ;
2727 }
Original file line number Diff line number Diff line change 88 <RootNamespace >Plugin.InputKit</RootNamespace >
99 <PackageId >Xamarin.Forms.InputKit</PackageId >
1010 <Product >$(AssemblyName) ($(TargetFramework))</Product >
11- <Version >4.1.0 </Version >
11+ <Version >4.1.1 </Version >
1212 <PackOnBuild >false</PackOnBuild >
1313 <NeutralLanguage >en-US</NeutralLanguage >
1414 <DefineConstants >$(DefineConstants);</DefineConstants >
You can’t perform that action at this time.
0 commit comments