@@ -695,7 +695,7 @@ let OutputPhasedErrorR (os:StringBuilder) (err:PhasedDiagnostic) =
695695| ContextInfo.TupleInRecordFields->
696696 os.Append( ErrorFromAddingTypeEquation1E() .Format t2 t1 tpcs) |> ignore
697697 os.Append( System.Environment.NewLine+ FSComp.SR.commaInsteadOfSemicolonInRecord()) |> ignore
698- | _ when t2= " bool" && t1.EndsWith " ref" ->
698+ | _ when t2= " bool" && t1.EndsWithOrdinal ( " ref" ) ->
699699 os.Append( ErrorFromAddingTypeEquation1E() .Format t2 t1 tpcs) |> ignore
700700 os.Append( System.Environment.NewLine+ FSComp.SR.derefInsteadOfNot()) |> ignore
701701| _ -> os.Append( ErrorFromAddingTypeEquation1E() .Format t2 t1 tpcs) |> ignore
@@ -1604,7 +1604,7 @@ let SanitizeFileName fileName implicitIncludeDir =
16041604let currentDir = implicitIncludeDir
16051605
16061606// if the file name is not rooted in the current directory, return the full path
1607- if not ( fullPath.StartsWith ( currentDir)) then
1607+ if not ( fullPath.StartsWithOrdinal ( currentDir)) then
16081608 fullPath
16091609// if the file name is rooted in the current directory, return the relative path
16101610else
@@ -1796,7 +1796,7 @@ type private TypeInThisAssembly = class end
17961796let GetDefaultSystemValueTupleReference () =
17971797try
17981798let asm = typeof< System.ValueTuple< int, int>>. Assembly
1799- if asm.FullName.StartsWith " System.ValueTuple" then
1799+ if asm.FullName.StartsWithOrdinal ( " System.ValueTuple" ) then
18001800 Some asm.Location
18011801else
18021802let location = Path.GetDirectoryName( typeof< TypeInThisAssembly>. Assembly.Location)
@@ -2025,7 +2025,7 @@ let GetWarningNumber(m, s:string) =
20252025// therefore if we have warning id that starts with a numeric digit we convert it to Some (int32)
20262026// anything else is ignored None
20272027if Char.IsDigit( s.[ 0 ]) then Some( int32 s)
2028- elif s.StartsWith ( " FS" , StringComparison.Ordinal ) = true then raise( new ArgumentException())
2028+ elif s.StartsWithOrdinal ( " FS" ) = true then raise( new ArgumentException())
20292029else None
20302030with err->
20312031 warning( Error( FSComp.SR.buildInvalidWarningNumber( s), m))
@@ -3748,28 +3748,29 @@ type TcAssemblyResolutions(tcConfig: TcConfig, results: AssemblyResolution list,
37483748//--------------------------------------------------------------------------
37493749
37503750let IsSignatureDataResource ( r : ILResource ) =
3751- r.Name.StartsWith FSharpSignatureDataResourceName||
3752- r.Name.StartsWith FSharpSignatureDataResourceName2
3751+ r.Name.StartsWithOrdinal ( FSharpSignatureDataResourceName) ||
3752+ r.Name.StartsWithOrdinal ( FSharpSignatureDataResourceName2)
37533753
37543754let IsOptimizationDataResource ( r : ILResource ) =
3755- r.Name.StartsWith FSharpOptimizationDataResourceName||
3756- r.Name.StartsWith FSharpOptimizationDataResourceName2
3755+ r.Name.StartsWithOrdinal ( FSharpOptimizationDataResourceName) ||
3756+ r.Name.StartsWithOrdinal ( FSharpOptimizationDataResourceName2)
37573757
37583758let GetSignatureDataResourceName ( r : ILResource ) =
3759- if r.Name.StartsWith FSharpSignatureDataResourceNamethen
3759+ if r.Name.StartsWithOrdinal ( FSharpSignatureDataResourceName) then
37603760 String.dropPrefix r.Name FSharpSignatureDataResourceName
3761- elif r.Name.StartsWith FSharpSignatureDataResourceName2then
3761+ elif r.Name.StartsWithOrdinal ( FSharpSignatureDataResourceName2) then
37623762 String.dropPrefix r.Name FSharpSignatureDataResourceName2
37633763else failwith" GetSignatureDataResourceName"
37643764
37653765let GetOptimizationDataResourceName ( r : ILResource ) =
3766- if r.Name.StartsWith FSharpOptimizationDataResourceNamethen
3766+ if r.Name.StartsWithOrdinal ( FSharpOptimizationDataResourceName) then
37673767 String.dropPrefix r.Name FSharpOptimizationDataResourceName
3768- elif r.Name.StartsWith FSharpOptimizationDataResourceName2then
3768+ elif r.Name.StartsWithOrdinal ( FSharpOptimizationDataResourceName2) then
37693769 String.dropPrefix r.Name FSharpOptimizationDataResourceName2
37703770else failwith" GetOptimizationDataResourceName"
37713771
3772- let IsReflectedDefinitionsResource ( r : ILResource ) = r.Name.StartsWith QuotationPickler.SerializedReflectedDefinitionsResourceNameBase
3772+ let IsReflectedDefinitionsResource ( r : ILResource ) =
3773+ r.Name.StartsWithOrdinal( QuotationPickler.SerializedReflectedDefinitionsResourceNameBase)
37733774
37743775let MakeILResource rname bytes =
37753776{ Name= rname