Imported Upstream version 5.16.0.176

Former-commit-id: 2a68abbd7d315da91444d8e076512844099b08de
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-10-03 08:22:01 +00:00
parent 4d0627f707
commit c02e2f17d5
42 changed files with 45 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ static class Consts
// Use these assembly version constants to make code more maintainable.
//
public const string MonoVersion = "5.16.0.174";
public const string MonoVersion = "5.16.0.176";
public const string MonoCompany = "Mono development team";
public const string MonoProduct = "Mono Common Language Infrastructure";
public const string MonoCopyright = "(c) Various Mono authors";

View File

@@ -213,7 +213,7 @@ namespace System.Reflection {
private static bool filter_by_type_name (Type m, object filterCriteria) {
string s = (string)filterCriteria;
if (s.Length > 0 && s [s.Length - 1] == '*')
return m.Name.StartsWithOrdinalUnchecked (s.Substring (0, s.Length - 1));
return m.Name.StartsWith (s.Substring (0, s.Length - 1), StringComparison.Ordinal);
return m.Name == s;
}

View File

@@ -324,10 +324,14 @@ public class ModuleTest
Type[] t;
t = m.FindTypes (Module.FilterTypeName, "*");
Assert.AreNotEqual (0, t.Length, "#A0");
t = m.FindTypes (Module.FilterTypeName, "FindTypesTest*");
Assert.AreEqual (2, t.Length, "#A1");
Assert.AreEqual ("FindTypesTestFirstClass", t [0].Name, "#A2");
Assert.AreEqual ("FindTypesTestSecondClass", t [1].Name, "#A3");
t = m.FindTypes (Module.FilterTypeNameIgnoreCase, "*");
Assert.AreNotEqual (0, t.Length, "#B0");
t = m.FindTypes (Module.FilterTypeNameIgnoreCase, "findtypestest*");
Assert.AreEqual (2, t.Length, "#B1");
Assert.AreEqual ("FindTypesTestFirstClass", t [0].Name, "#B2");

View File

@@ -1 +1 @@
7e2e318322aca81235ffc3c3be5f7383ebe374d8
9353ba17188ef3582baedcc1de0a9616e7fdfaf2

View File

@@ -1 +1 @@
2dd0eef3a52205e1336863773f343be46bd67637
5748fe397ccf5f3014ed4a918a9b4dfbded6ff74

View File

@@ -1 +1 @@
1675aea91b5efdd1f4581fcd1c9b89fdd0e7ed4f
9bb36b4cc3aa1fc86ecb6925c9dad2cb6d75b3a8

View File

@@ -1 +1 @@
97c75d5e9cc403bd95f67626794afce40cfc6107
6a3e9c19a43ac93095785cb0232a148b65f4913d

View File

@@ -1 +1 @@
80832caaf98ab3dbda089f94d973b93d8ce9e26e
159eae24f5fecef1bab5c56100395260c7f8074a

View File

@@ -1 +1 @@
010cabffda43f3ea63b7cd3800e98a93fba1069f
f534c6fa324582a440e6879d919fe16f66fa1843

View File

@@ -1 +1 @@
7520e0f1806e63956e0d05dabfa18248e4a08f64
4a58e63e2f308c450f11de4281d6fef6dffdd625

View File

@@ -1 +1 @@
7e2e318322aca81235ffc3c3be5f7383ebe374d8
9353ba17188ef3582baedcc1de0a9616e7fdfaf2

View File

@@ -1 +1 @@
2dd0eef3a52205e1336863773f343be46bd67637
5748fe397ccf5f3014ed4a918a9b4dfbded6ff74

View File

@@ -1 +1 @@
1675aea91b5efdd1f4581fcd1c9b89fdd0e7ed4f
9bb36b4cc3aa1fc86ecb6925c9dad2cb6d75b3a8

View File

@@ -1 +1 @@
97c75d5e9cc403bd95f67626794afce40cfc6107
6a3e9c19a43ac93095785cb0232a148b65f4913d

View File

@@ -1 +1 @@
80832caaf98ab3dbda089f94d973b93d8ce9e26e
159eae24f5fecef1bab5c56100395260c7f8074a

View File

@@ -1 +1 @@
010cabffda43f3ea63b7cd3800e98a93fba1069f
f534c6fa324582a440e6879d919fe16f66fa1843

View File

@@ -1 +1 @@
7520e0f1806e63956e0d05dabfa18248e4a08f64
4a58e63e2f308c450f11de4281d6fef6dffdd625

View File

@@ -1 +1 @@
7e2e318322aca81235ffc3c3be5f7383ebe374d8
9353ba17188ef3582baedcc1de0a9616e7fdfaf2

Some files were not shown because too many files have changed in this diff Show More