Repository navigation
Remove a type conversion for CommaDelimitedStringCollection #11000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
de87158
2de5f67
f162882
21bed07
cd46f2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2426,23 +2426,7 @@ private static ManagementClass ConvertToWMIClass(object valueToConvert, | |
| valueToConvert.ToString(), resultType.ToString(), wmiClassException.Message); | ||
| } | ||
| } | ||
| #endif | ||
|
|
||
| // System.Configuration.CommaDelimitedStringCollection is derived from the StringCollection class | ||
| private static System.Configuration.CommaDelimitedStringCollection ConvertToCommaDelimitedStringCollection(object valueToConvert, | ||
| Type resultType, | ||
| bool recursion, | ||
| PSObject originalValueToConvert, | ||
| IFormatProvider formatProvider, | ||
| TypeTable backupTable) | ||
| { | ||
| typeConversion.WriteLine("Standard type conversion to a CommaDelimitedStringCollection."); | ||
| var commaDelimitedStringCollection = new System.Configuration.CommaDelimitedStringCollection(); | ||
| AddItemsToCollection(valueToConvert, resultType, formatProvider, backupTable, commaDelimitedStringCollection); | ||
| return commaDelimitedStringCollection; | ||
| } | ||
|
|
||
| #if !UNIX | ||
| private static DirectoryEntry ConvertToADSI(object valueToConvert, | ||
| Type resultType, | ||
| bool recursion, | ||
|
|
@@ -5006,14 +4990,6 @@ private static IConversionData FigureLanguageConversion(Type fromType, Type toTy | |
| return CacheConversion<StringCollection>(fromType, toType, LanguagePrimitives.ConvertToStringCollection, rank); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ilya (@iSazonov), your last commit had 2 failures in Expected $true, because The script was able to re-enter another process and grab the pipe of 'lste30rz.0ra'., but got $false.
at <ScriptBlock>, D:\a\1\s\test\powershell\Modules\Microsoft.PowerShell.Core\Enter-PSHostProcess.Tests.ps1: line 170
170: Should -BeTrue -Because "The script was able to re-enter another process and grab the pipe of '$pipeName'."Validate start of console host.No new assemblies are loaded Expected exactly $null, but got @{InputObject=System.Configuration.ConfigurationManager.dll; SideIndicator==>}.
at <ScriptBlock>, D:\a\1\s\test\powershell\Host\Startup.Tests.ps1: line 125
125: $diffs | Should -BeExactly $null
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ilya (@iSazonov), your last commit had 1 failures in Expected exactly $null, but got @{InputObject=System.Configuration.ConfigurationManager.dll; SideIndicator==>}.
at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Host/Startup.Tests.ps1: line 125
125: $diffs | Should -BeExactly $null |
||
| } | ||
|
|
||
| #if !CORECLR // No CommaDelimitedStringCollection In CoreCLR | ||
| if (toType == typeof(System.Configuration.CommaDelimitedStringCollection)) | ||
| { | ||
| ConversionRank rank = (fromType.IsArray || IsTypeEnumerable(fromType)) ? ConversionRank.Language : ConversionRank.LanguageS2A; | ||
| return CacheConversion<System.Configuration.CommaDelimitedStringCollection>(fromType, toType, LanguagePrimitives.ConvertToCommaDelimitedStringCollection, rank); | ||
| } | ||
| #endif | ||
|
|
||
| if (toType.IsSubclassOf(typeof(System.Delegate)) | ||
| && (fromType == typeof(ScriptBlock) || fromType.IsSubclassOf(typeof(ScriptBlock)))) | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ilya (@iSazonov), your last commit had 1 failures in
PowerShell-CI-macosValidate start of console host.No new assemblies are loaded