mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove unused cached types (#9015)
These types are not used in PowerShell code base and should be removed. ## PR Context The dotnet 3.0.100-preview3-010406 version added overloads to `string.get_Chars` and hence we cannot resolved which overload to load. Thus, we get an type load exception. Since we are no using this type, it is better to remove it.
This commit is contained in:
@@ -222,9 +222,6 @@ namespace System.Management.Automation.Language
|
||||
internal static readonly MethodInfo IComparable_CompareTo =
|
||||
typeof(IComparable).GetMethod(nameof(IComparable.CompareTo));
|
||||
|
||||
internal static readonly MethodInfo IDictionary_set_Item =
|
||||
typeof(IDictionary).GetMethod("set_Item");
|
||||
|
||||
internal static readonly MethodInfo IDisposable_Dispose =
|
||||
typeof(IDisposable).GetMethod(nameof(IDisposable.Dispose));
|
||||
|
||||
@@ -452,8 +449,6 @@ namespace System.Management.Automation.Language
|
||||
typeof(string).GetMethod(nameof(string.Equals), staticPublicFlags, null,
|
||||
CallingConventions.Standard,
|
||||
new Type[] { typeof(string), typeof(string), typeof(StringComparison) }, null);
|
||||
internal static readonly MethodInfo String_get_Chars =
|
||||
typeof(string).GetMethod("get_Chars");
|
||||
internal static readonly PropertyInfo String_Length =
|
||||
typeof(string).GetProperty(nameof(string.Length));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user